作者 Your Name
@@ -66,7 +66,7 @@ class Notice extends Command @@ -66,7 +66,7 @@ class Notice extends Command
66 } 66 }
67 foreach ($domainList as $v1){ 67 foreach ($domainList as $v1){
68 //TODO::通知C端 68 //TODO::通知C端
69 - @file_put_contents(storage_path('logs/notice_c_'.date('Y-m-d').'.log'), var_export($v1['domain'], true) . PHP_EOL, FILE_APPEND); 69 + @file_put_contents(storage_path('logs/notice_c'.'.log'), var_export($v1['domain'], true) . PHP_EOL, FILE_APPEND);
70 $this->curlDelRoute($v1['domain'],$v1['project_id']); 70 $this->curlDelRoute($v1['domain'],$v1['project_id']);
71 } 71 }
72 return true; 72 return true;
@@ -139,9 +139,12 @@ class CategoryController extends BaseController @@ -139,9 +139,12 @@ class CategoryController extends BaseController
139 */ 139 */
140 public function sort(CategoryLogic $logic){ 140 public function sort(CategoryLogic $logic){
141 $this->request->validate([ 141 $this->request->validate([
142 - 'id'=>['required'], 142 + 'id'=>'required',
  143 + 'sort'=>'numeric|min:0',
143 ],[ 144 ],[
144 'id.required' => 'ID不能为空', 145 'id.required' => 'ID不能为空',
  146 + 'sort.numeric' => 'sort位数字',
  147 + 'sort.min' => 'sort最小值为0',
145 ]); 148 ]);
146 $logic->categorySort(); 149 $logic->categorySort();
147 $this->response('success'); 150 $this->response('success');
@@ -97,7 +97,6 @@ class CopyProjectJob implements ShouldQueue @@ -97,7 +97,6 @@ class CopyProjectJob implements ShouldQueue
97 unset($optimizeData['id'],$optimizeData['domain']); 97 unset($optimizeData['id'],$optimizeData['domain']);
98 $optimizeData['project_id'] = $project_id; 98 $optimizeData['project_id'] = $project_id;
99 $optimizeData['api_no'] = 0; 99 $optimizeData['api_no'] = 0;
100 - $optimizeData['minor_languages'] = json_encode([]);  
101 $optimizeModel->insert($optimizeData); 100 $optimizeModel->insert($optimizeData);
102 } 101 }
103 //复制付费表 102 //复制付费表
@@ -174,7 +173,7 @@ class CopyProjectJob implements ShouldQueue @@ -174,7 +173,7 @@ class CopyProjectJob implements ShouldQueue
174 if($table == 'gl_customer_visit' || $table == 'gl_customer_visit_item' || $table == 'gl_inquiry_other' || $table == 'gl_inquiry_form_data' || $table == 'gl_inquiry_form'){ 173 if($table == 'gl_customer_visit' || $table == 'gl_customer_visit_item' || $table == 'gl_inquiry_other' || $table == 'gl_inquiry_form_data' || $table == 'gl_inquiry_form'){
175 continue; 174 continue;
176 } 175 }
177 -// DB::connection('custom_mysql')->table($table)->truncate(); // 清空目标表数据 176 + DB::connection('custom_mysql')->table($table)->truncate(); // 清空目标表数据
178 DB::connection('custom_mysql')->table($table)->insertUsing( 177 DB::connection('custom_mysql')->table($table)->insertUsing(
179 [], // 列名数组,留空表示插入所有列 178 [], // 列名数组,留空表示插入所有列
180 function ($query) use ($table,$project_id) { 179 function ($query) use ($table,$project_id) {
@@ -79,6 +79,12 @@ return [ @@ -79,6 +79,12 @@ return [
79 'prefix' => 'test', 79 'prefix' => 'test',
80 ], 80 ],
81 //日记录日志 81 //日记录日志
  82 + 'copy_project' => [
  83 + 'driver' => 'custom',
  84 + 'via' => \App\Factory\LogFormatterFactory::class,
  85 + 'prefix' => 'copy_project',
  86 + ],
  87 + //日记录日志
82 'day_count' => [ 88 'day_count' => [
83 'driver' => 'custom', 89 'driver' => 'custom',
84 'via' => \App\Factory\LogFormatterFactory::class, 90 'via' => \App\Factory\LogFormatterFactory::class,