作者 李宇航

合并分支 'lyh-server' 到 'master'

变更数据



查看合并请求 !3064
... ... @@ -94,6 +94,6 @@ class GeoWritingsLogic extends BaseLogic
if($data === false){
$this->fail('项目未绑定微信群');
}
return $this->success();
return $this->success($data);
}
}
... ...
... ... @@ -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' => '确认核心文章',
... ...