交友房 送礼
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
namespace app\api\model;
|
namespace app\api\model;
|
||||||
|
|
||||||
use think\Db;
|
use think\Db;
|
||||||
|
use think\Log;
|
||||||
use think\Model;
|
use think\Model;
|
||||||
|
|
||||||
class Friend extends Model
|
class Friend extends Model
|
||||||
@@ -285,6 +286,7 @@ class Friend extends Model
|
|||||||
if($res['code'] != 1){
|
if($res['code'] != 1){
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
Log::record("交友房送礼".json_encode($res),"inFo");
|
||||||
//送礼成功后续操作
|
//送礼成功后续操作
|
||||||
//查看当前时间是否在交友表的创建时间和结束时间段内 用来区分是否要拉取心动值高的用户上麦
|
//查看当前时间是否在交友表的创建时间和结束时间段内 用来区分是否要拉取心动值高的用户上麦
|
||||||
$friend = db::name('vs_user_friending')->where(['room_id' => $room_id,'status' => 1])->order('id desc')->find();
|
$friend = db::name('vs_user_friending')->where(['room_id' => $room_id,'status' => 1])->order('id desc')->find();
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ class Tencent extends Model
|
|||||||
$curlPost = json_encode($curlPost);
|
$curlPost = json_encode($curlPost);
|
||||||
|
|
||||||
$reslut = $this->tencent_post_url($postUrl, $curlPost);
|
$reslut = $this->tencent_post_url($postUrl, $curlPost);
|
||||||
Log::record("腾讯群内系统消息发送结果".json_encode($reslut),"info");
|
// Log::record("腾讯群内系统消息发送结果".json_encode($reslut),"info");
|
||||||
if($reslut['ActionStatus'] == 'OK'){
|
if($reslut['ActionStatus'] == 'OK'){
|
||||||
return ['code' => 1, 'msg' => '发送成功', 'data' => $reslut];
|
return ['code' => 1, 'msg' => '发送成功', 'data' => $reslut];
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user