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