...
|
...
|
@@ -56,8 +56,8 @@ class Pay extends Api |
|
|
if ($order['status'] != 1) { // 判断是否已经支付
|
|
|
return true; // 已经支付成功了就不再更新了
|
|
|
}
|
|
|
Log::write(date('Y-m-d H:i') . '用户注册成功,返回结果111:' . json_encode($order, JSON_UNESCAPED_UNICODE), 'rongyun_log');
|
|
|
|
|
|
$update['transaction_id'] = $notify->transaction_id;
|
|
|
//判断用户是否有邀请人
|
|
|
$invite = Db::name('user')->where('id',$order['user_id'])->find();
|
|
|
if(empty($invite['invite_id'])){
|
...
|
...
|
@@ -127,6 +127,8 @@ class Pay extends Api |
|
|
Db::name('teacher')->where('id',$order['teacher_id'])->setInc('help_num');
|
|
|
// 创建融云用户、群组
|
|
|
$teacher_id = Db::name('teacher')->where('id',$order['teacher_id'])->value('user_id');
|
|
|
Log::write(date('Y-m-d H:i') . '用户注册成功,返回结果111:' . json_encode($order, JSON_UNESCAPED_UNICODE), 'rongyun_log');
|
|
|
|
|
|
$rongyun_chat = $this->rongyun_handle($order['user_id'].','.$teacher_id,$order['id']);
|
|
|
if($rongyun_chat) {
|
|
|
$update['chat_id'] = $rongyun_chat['chat_id'];
|
...
|
...
|
|