作者 lyh

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6

@@ -67,7 +67,7 @@ class ProjectUpdate extends Command @@ -67,7 +67,7 @@ class ProjectUpdate extends Command
67 $api_url_arr = explode('?', $task->api_url); 67 $api_url_arr = explode('?', $task->api_url);
68 $api_url = $api_url_arr[0]; 68 $api_url = $api_url_arr[0];
69 69
70 - $page_size = 10; 70 + $page_size = 20;
71 71
72 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', task_type: ' . $api_type . ', update start' . PHP_EOL; 72 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', task_type: ' . $api_type . ', update start' . PHP_EOL;
73 73
@@ -207,7 +207,7 @@ class LoginController extends BaseController @@ -207,7 +207,7 @@ class LoginController extends BaseController
207 * @time :2023/9/1 10:12 207 * @time :2023/9/1 10:12
208 */ 208 */
209 public function getWechatLoginInfo(){ 209 public function getWechatLoginInfo(){
210 - $this->request->validate([ 210 + $this->param = $this->request->validate([
211 'ticket' => 'required', 211 'ticket' => 'required',
212 ],[ 212 ],[
213 'ticket.required' => 'ticket不能为空', 213 'ticket.required' => 'ticket不能为空',
@@ -336,12 +336,9 @@ class ProductLogic extends BaseLogic @@ -336,12 +336,9 @@ class ProductLogic extends BaseLogic
336 public function batchSetCategory(){ 336 public function batchSetCategory(){
337 DB::beginTransaction(); 337 DB::beginTransaction();
338 try { 338 try {
339 - //删除分类关联表记录  
340 - $categoryRelatedModel = new CategoryRelated();  
341 - $categoryRelatedModel->del(['product_id'=>['in',$this->param['id']]]);  
342 //批量 339 //批量
343 $param = [ 340 $param = [
344 - 'category_id'=>Arr::arrToSet($this->param['category_id']), 341 + 'category_id'=>','.Arr::arrToSet($this->param['category_id']).',',
345 'status'=>$this->param['status'] 342 'status'=>$this->param['status']
346 ]; 343 ];
347 $this->model->edit($param,['id'=>['in',$this->param['id']]]); 344 $this->model->edit($param,['id'=>['in',$this->param['id']]]);
@@ -349,7 +346,7 @@ class ProductLogic extends BaseLogic @@ -349,7 +346,7 @@ class ProductLogic extends BaseLogic
349 //对应添加关联表 346 //对应添加关联表
350 }catch (\Exception $e){ 347 }catch (\Exception $e){
351 DB::rollBack(); 348 DB::rollBack();
352 - $this->fail('error'); 349 + $this->fail('系统错误,请联系管理员');
353 } 350 }
354 return $this->success(); 351 return $this->success();
355 } 352 }