|
...
|
...
|
@@ -77,20 +77,21 @@ class GeoWritings extends Base |
|
|
|
*/
|
|
|
|
public static function sendConfirmMessage($project_id)
|
|
|
|
{
|
|
|
|
$friend = ProjectAssociation::where(['project_id' => $project_id])->first();
|
|
|
|
if (empty($friend)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
// $friend = ProjectAssociation::where(['project_id' => $project_id])->first();
|
|
|
|
// if (empty($friend)) {
|
|
|
|
// return false;
|
|
|
|
// }
|
|
|
|
$content_type = 'Link';
|
|
|
|
$send_time = now();
|
|
|
|
$type = MessagePush::TYPE_GEO_CONFIRM;
|
|
|
|
$friend_id = $friend->friend_id;
|
|
|
|
// $friend_id = $friend->friend_id;
|
|
|
|
$created_at = $updated_at = now();
|
|
|
|
$param = [
|
|
|
|
'project_id' => $project_id,
|
|
|
|
'send_at' => time()
|
|
|
|
];
|
|
|
|
$token = Crypt::encrypt($param);
|
|
|
|
return ['token'=>$token];
|
|
|
|
$content_array = [
|
|
|
|
'title' => "确认核心文章",
|
|
|
|
'desc' => '确认核心文章',
|
...
|
...
|
|