正在显示
4 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -9,7 +9,6 @@ | @@ -9,7 +9,6 @@ | ||
| 9 | 9 | ||
| 10 | namespace App\Http\Logic\Aside\Geo; | 10 | namespace App\Http\Logic\Aside\Geo; |
| 11 | 11 | ||
| 12 | -use App\Enums\Common\Code; | ||
| 13 | use App\Http\Logic\Aside\BaseLogic; | 12 | use App\Http\Logic\Aside\BaseLogic; |
| 14 | use App\Models\Geo\GeoConf; | 13 | use App\Models\Geo\GeoConf; |
| 15 | use App\Models\Geo\GeoConfirm; | 14 | use App\Models\Geo\GeoConfirm; |
| @@ -102,7 +102,7 @@ class GeoWritingsLogic extends BaseLogic | @@ -102,7 +102,7 @@ class GeoWritingsLogic extends BaseLogic | ||
| 102 | */ | 102 | */ |
| 103 | public function sendWechatMessage() | 103 | public function sendWechatMessage() |
| 104 | { | 104 | { |
| 105 | - $wechat = $this->param['wechat'] ?? true; | 105 | + $wechat = $this->param['wechat'] ?? 1; |
| 106 | $this->model->edit(['status'=>2],['status'=>1,'project_id'=>$this->param['project_id']]); | 106 | $this->model->edit(['status'=>2],['status'=>1,'project_id'=>$this->param['project_id']]); |
| 107 | $data = GeoWritings::sendConfirmMessage($this->param['project_id'],$wechat); | 107 | $data = GeoWritings::sendConfirmMessage($this->param['project_id'],$wechat); |
| 108 | if($data === false){ | 108 | if($data === false){ |
| @@ -38,7 +38,7 @@ class GeoWritingsTaskRequest extends FormRequest | @@ -38,7 +38,7 @@ class GeoWritingsTaskRequest extends FormRequest | ||
| 38 | // 'prefix' => 'required|string', | 38 | // 'prefix' => 'required|string', |
| 39 | // 'suffix' => 'required|string', | 39 | // 'suffix' => 'required|string', |
| 40 | 'event_title' => 'required|string', | 40 | 'event_title' => 'required|string', |
| 41 | - 'event_content' => 'required|string', | 41 | +// 'event_content' => 'required|string', |
| 42 | 'title' => 'required|string|max:120', | 42 | 'title' => 'required|string|max:120', |
| 43 | 'description' => 'required|string', | 43 | 'description' => 'required|string', |
| 44 | ]; | 44 | ]; |
| @@ -77,7 +77,7 @@ class GeoWritings extends Base | @@ -77,7 +77,7 @@ class GeoWritings extends Base | ||
| 77 | * @return bool | 77 | * @return bool |
| 78 | * @throws \Exception | 78 | * @throws \Exception |
| 79 | */ | 79 | */ |
| 80 | - public static function sendConfirmMessage($project_id,$wechat = true) | 80 | + public static function sendConfirmMessage($project_id,$wechat = 1) |
| 81 | { | 81 | { |
| 82 | $friend = ProjectAssociation::where(['project_id' => $project_id])->first(); | 82 | $friend = ProjectAssociation::where(['project_id' => $project_id])->first(); |
| 83 | if (empty($friend)) { | 83 | if (empty($friend)) { |
-
请 注册 或 登录 后发表评论