作者 lyh

gx

... ... @@ -120,6 +120,7 @@ class ProjectServer extends BaseService
* @time :2023/12/29 9:34
*/
public function initModule($project_id){
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(11111, true) . PHP_EOL, FILE_APPEND);
$info = DB::connection('custom_mysql')->table('gl_custom_module')->first();
if(empty($info)){
$data = [
... ... @@ -131,6 +132,7 @@ class ProjectServer extends BaseService
];
DB::connection('custom_mysql')->table('gl_custom_module')->insert($data);
}
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(22222, true) . PHP_EOL, FILE_APPEND);
return true;
}
/**
... ...