作者 lyh

变更数据

@@ -769,7 +769,7 @@ class ImageController extends Controller @@ -769,7 +769,7 @@ class ImageController extends Controller
769 $this->response('请先设置水印',Code::SYSTEM_ERROR); 769 $this->response('请先设置水印',Code::SYSTEM_ERROR);
770 } 770 }
771 if($info['status'] == 2 && empty($info['str_data'])){ 771 if($info['status'] == 2 && empty($info['str_data'])){
772 - $this->response('请先设置水印',Code::SYSTEM_ERROR); 772 + $this->response('请先设置文字水印',Code::SYSTEM_ERROR);
773 } 773 }
774 $imageSetting->edit(['status'=>$this->param['status']],['project_id'=>$this->cache['project_id']]); 774 $imageSetting->edit(['status'=>$this->param['status']],['project_id'=>$this->cache['project_id']]);
775 $this->response('success'); 775 $this->response('success');
@@ -11,8 +11,11 @@ namespace App\Http\Logic\Aside\Geo; @@ -11,8 +11,11 @@ namespace App\Http\Logic\Aside\Geo;
11 11
12 use App\Enums\Common\Code; 12 use App\Enums\Common\Code;
13 use App\Http\Logic\Aside\BaseLogic; 13 use App\Http\Logic\Aside\BaseLogic;
  14 +use App\Models\Geo\GeoConf;
14 use App\Models\Geo\GeoConfirm; 15 use App\Models\Geo\GeoConfirm;
  16 +use App\Models\Manage\ManageHr;
15 use App\Models\ProjectAssociation\ProjectAssociation; 17 use App\Models\ProjectAssociation\ProjectAssociation;
  18 +use App\Services\DingService;
16 19
17 /** 20 /**
18 * @remark :用户确认信息 21 * @remark :用户确认信息
@@ -92,6 +95,19 @@ class GeoConfirmLogic extends BaseLogic @@ -92,6 +95,19 @@ class GeoConfirmLogic extends BaseLogic
92 }else{ 95 }else{
93 $id = $info['id']; 96 $id = $info['id'];
94 $this->model->edit($this->param,['id'=>$info['id']]); 97 $this->model->edit($this->param,['id'=>$info['id']]);
  98 + $geoConfModel = new GeoConf();
  99 + $confInfo = $geoConfModel->read(['project_id'=>$info['project_id']]);
  100 + $hrModel = new ManageHr();
  101 + $manage_name = $hrModel->getName($confInfo['manager_id'] ??'');
  102 + $dingService = new DingService();
  103 + $dingService->handle([
  104 + 'keyword' => '项目数据确认',
  105 + 'msg' =>
  106 + 'cm:'.(($info['type'] == 1) ? '标题确认' : '关键词确认'). PHP_EOL .
  107 + '项目名称:'.$confInfo['company'] ?? '' . PHP_EOL .
  108 + '负责人:'.$manage_name . PHP_EOL,
  109 + 'isAtAll' => false, // 是否@所有人
  110 + ], 'https://oapi.dingtalk.com/robot/send?access_token=4effe85882009a8a1617dbeadc38c350f832deef7431ce10f5fda751b4c82fb9');
95 } 111 }
96 return $this->success(['id'=>$id]); 112 return $this->success(['id'=>$id]);
97 } 113 }