|
...
|
...
|
@@ -77,7 +77,7 @@ class GeoWritings extends Base |
|
|
|
* @return bool
|
|
|
|
* @throws \Exception
|
|
|
|
*/
|
|
|
|
public static function sendConfirmMessage($project_id)
|
|
|
|
public static function sendConfirmMessage($project_id,$wechat = true)
|
|
|
|
{
|
|
|
|
$friend = ProjectAssociation::where(['project_id' => $project_id])->first();
|
|
|
|
if (empty($friend)) {
|
|
...
|
...
|
@@ -104,9 +104,11 @@ class GeoWritings extends Base |
|
|
|
'thumbUrl' => 'https://hub.globalso.com/logocm.png',
|
|
|
|
'url' => 'https://oa.quanqiusou.cn/public-geo-article-list?token=' . $token
|
|
|
|
];
|
|
|
|
if($wechat){
|
|
|
|
$content = json_encode($content_array, JSON_UNESCAPED_UNICODE);
|
|
|
|
MessagePush::insert(compact('project_id', 'friend_id', 'type', 'content_type', 'content', 'send_time', 'updated_at', 'created_at'));
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return $content_array;
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
...
|
...
|
|