作者 lyh

gx

@@ -119,7 +119,7 @@ class ProjectServer extends BaseService @@ -119,7 +119,7 @@ class ProjectServer extends BaseService
119 * @method :post 119 * @method :post
120 * @time :2023/12/29 9:34 120 * @time :2023/12/29 9:34
121 */ 121 */
122 - public function initModule($project_id){ 122 + public static function initModule($project_id){
123 @file_put_contents(storage_path('logs/lyh_error.log'), var_export(11111, true) . PHP_EOL, FILE_APPEND); 123 @file_put_contents(storage_path('logs/lyh_error.log'), var_export(11111, true) . PHP_EOL, FILE_APPEND);
124 $info = DB::connection('custom_mysql')->table('gl_custom_module')->first(); 124 $info = DB::connection('custom_mysql')->table('gl_custom_module')->first();
125 if(empty($info)){ 125 if(empty($info)){
@@ -132,7 +132,6 @@ class ProjectServer extends BaseService @@ -132,7 +132,6 @@ class ProjectServer extends BaseService
132 ]; 132 ];
133 DB::connection('custom_mysql')->table('gl_custom_module')->insert($data); 133 DB::connection('custom_mysql')->table('gl_custom_module')->insert($data);
134 } 134 }
135 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(22222, true) . PHP_EOL, FILE_APPEND);  
136 return true; 135 return true;
137 } 136 }
138 /** 137 /**