|
@@ -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)
|
80
|
+ public static function sendConfirmMessage($project_id,$wechat = true)
|
|
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)) {
|
|
@@ -104,9 +104,11 @@ class GeoWritings extends Base |
|
@@ -104,9 +104,11 @@ class GeoWritings extends Base |
|
104
|
'thumbUrl' => 'https://hub.globalso.com/logocm.png',
|
104
|
'thumbUrl' => 'https://hub.globalso.com/logocm.png',
|
|
105
|
'url' => 'https://oa.quanqiusou.cn/public-geo-article-list?token=' . $token
|
105
|
'url' => 'https://oa.quanqiusou.cn/public-geo-article-list?token=' . $token
|
|
106
|
];
|
106
|
];
|
|
107
|
- $content = json_encode($content_array, JSON_UNESCAPED_UNICODE);
|
|
|
|
108
|
- MessagePush::insert(compact('project_id', 'friend_id', 'type', 'content_type', 'content', 'send_time', 'updated_at', 'created_at'));
|
|
|
|
109
|
- return true;
|
107
|
+ if($wechat){
|
|
|
|
108
|
+ $content = json_encode($content_array, JSON_UNESCAPED_UNICODE);
|
|
|
|
109
|
+ MessagePush::insert(compact('project_id', 'friend_id', 'type', 'content_type', 'content', 'send_time', 'updated_at', 'created_at'));
|
|
|
|
110
|
+ }
|
|
|
|
111
|
+ return $content_array;
|
|
110
|
}
|
112
|
}
|
|
111
|
|
113
|
|
|
112
|
} |
114
|
} |