作者 lyh

变更数据

@@ -10,7 +10,9 @@ @@ -10,7 +10,9 @@
10 namespace App\Http\Logic\Aside\Geo; 10 namespace App\Http\Logic\Aside\Geo;
11 11
12 use App\Http\Logic\Aside\BaseLogic; 12 use App\Http\Logic\Aside\BaseLogic;
  13 +use App\Models\Geo\GeoConfirm;
13 use App\Models\Geo\GeoWritings; 14 use App\Models\Geo\GeoWritings;
  15 +use App\Models\ProjectAssociation\ProjectAssociation;
14 16
15 /** 17 /**
16 * @remark :文章任务 18 * @remark :文章任务
@@ -59,6 +61,11 @@ class GeoWritingsLogic extends BaseLogic @@ -59,6 +61,11 @@ class GeoWritingsLogic extends BaseLogic
59 $this->param['uniqid'] = uniqid().$this->param['project_id']; 61 $this->param['uniqid'] = uniqid().$this->param['project_id'];
60 $id = $this->model->addReturnId($this->param); 62 $id = $this->model->addReturnId($this->param);
61 } 63 }
  64 + $friend = ProjectAssociation::where(['project_id' => $this->param['project_id']])->first();
  65 + if (empty($friend)){
  66 + $this->fail('项目未绑定微信群, 推送消息失败!');
  67 + }
  68 + GeoConfirm::sendConfirmMessage($id, $friend->friend_id);
62 }catch (\Exception $e){ 69 }catch (\Exception $e){
63 $this->fail('保存数据失败,请联系管理员'.$e->getMessage()); 70 $this->fail('保存数据失败,请联系管理员'.$e->getMessage());
64 } 71 }