正在显示
1 个修改的文件
包含
5 行增加
和
6 行删除
| @@ -77,21 +77,20 @@ class GeoWritings extends Base | @@ -77,21 +77,20 @@ class GeoWritings extends Base | ||
| 77 | */ | 77 | */ |
| 78 | public static function sendConfirmMessage($project_id) | 78 | public static function sendConfirmMessage($project_id) |
| 79 | { | 79 | { |
| 80 | -// $friend = ProjectAssociation::where(['project_id' => $project_id])->first(); | ||
| 81 | -// if (empty($friend)) { | ||
| 82 | -// return false; | ||
| 83 | -// } | 80 | + $friend = ProjectAssociation::where(['project_id' => $project_id])->first(); |
| 81 | + if (empty($friend)) { | ||
| 82 | + return false; | ||
| 83 | + } | ||
| 84 | $content_type = 'Link'; | 84 | $content_type = 'Link'; |
| 85 | $send_time = now(); | 85 | $send_time = now(); |
| 86 | $type = MessagePush::TYPE_GEO_CONFIRM; | 86 | $type = MessagePush::TYPE_GEO_CONFIRM; |
| 87 | -// $friend_id = $friend->friend_id; | 87 | + $friend_id = $friend->friend_id; |
| 88 | $created_at = $updated_at = now(); | 88 | $created_at = $updated_at = now(); |
| 89 | $param = [ | 89 | $param = [ |
| 90 | 'project_id' => $project_id, | 90 | 'project_id' => $project_id, |
| 91 | 'send_at' => time() | 91 | 'send_at' => time() |
| 92 | ]; | 92 | ]; |
| 93 | $token = Crypt::encrypt($param); | 93 | $token = Crypt::encrypt($param); |
| 94 | - return ['token'=>$token]; | ||
| 95 | $content_array = [ | 94 | $content_array = [ |
| 96 | 'title' => "确认核心文章", | 95 | 'title' => "确认核心文章", |
| 97 | 'desc' => '确认核心文章', | 96 | 'desc' => '确认核心文章', |
-
请 注册 或 登录 后发表评论