|
...
|
...
|
@@ -106,7 +106,7 @@ class GeoConfirm extends Base |
|
|
|
* @param $id
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public static function sendConfirmMessage($id, $friend_id,$send = true)
|
|
|
|
public static function sendConfirmMessage($id, $friend_id,$send = 1)
|
|
|
|
{
|
|
|
|
$data = self::where(compact('id'))->first();
|
|
|
|
$project_id = $data->project_id;
|
|
...
|
...
|
@@ -127,7 +127,7 @@ class GeoConfirm extends Base |
|
|
|
'url' => 'https://oa.quanqiusou.cn/public-geo-confirm?token=' . $token
|
|
|
|
];
|
|
|
|
$content = json_encode($content_array, JSON_UNESCAPED_UNICODE);
|
|
|
|
if($send == true){
|
|
|
|
if($send){
|
|
|
|
$data->send_at = now();
|
|
|
|
$data->status = self::STATUS_RUNNING;
|
|
|
|
MessagePush::insert(compact('project_id', 'friend_id', 'type', 'content_type', 'content', 'send_time', 'updated_at', 'created_at'));
|
...
|
...
|
|