star7th 5 years ago
parent
commit
4beb6043f2

+ 1 - 1
server/Application/Api/Controller/FromCommentsController.class.php

@@ -19,7 +19,7 @@ class FromCommentsController extends BaseController {
             echo "\napi_key或者api_token不匹配\n\n";
             return false;
         }
-
+        $content = str_replace("_this_and_change_", "&", $content);
         $p = "|/\*\*([\s\S]*)\*/|U";
         preg_match_all($p, $content , $matches) ;
         if ($matches && $matches[0]) {

+ 2 - 1
server/Application/Api/Controller/OpenController.class.php

@@ -51,7 +51,8 @@ class OpenController extends BaseController {
             echo "api_key或者api_token不匹配\n";
             return false;
         }
-
+        $table_info = str_replace("_this_and_change_", "&", $table_info);
+        $table_detail = str_replace("_this_and_change_", "&", $table_detail);
         $tables = $this->_analyze_db_structure_to_array($table_info ,$table_detail);
         if (!empty($tables)) {
             foreach ($tables as $key => $value) {