作者 Cool
1 个管道 的构建 通过 耗费 0 秒

支付回调修改

@@ -96,7 +96,7 @@ class Pay extends Api @@ -96,7 +96,7 @@ class Pay extends Api
96 Db::name('coupon')->insertGetId($coupon); 96 Db::name('coupon')->insertGetId($coupon);
97 Db::name('teacher')->where('id',$order['teacher_id'])->setInc('help_num'); 97 Db::name('teacher')->where('id',$order['teacher_id'])->setInc('help_num');
98 // 创建融云用户、群组 98 // 创建融云用户、群组
99 - $rongyun_chat = $this->rongyun_handle($is_one['user_id'].','.$is_one['teacher_id']); 99 + $rongyun_chat = $this->rongyun_handle($order['user_id'].','.$order['teacher_id']);
100 if($rongyun_chat) { 100 if($rongyun_chat) {
101 $update['chat_id'] = $rongyun_chat['chat_id']; 101 $update['chat_id'] = $rongyun_chat['chat_id'];
102 $update['chat_name'] = $rongyun_chat['chat_name']; 102 $update['chat_name'] = $rongyun_chat['chat_name'];
@@ -117,7 +117,7 @@ class Pay extends Api @@ -117,7 +117,7 @@ class Pay extends Api
117 $update['finish_status'] = 1; 117 $update['finish_status'] = 1;
118 Db::name('teacher')->where('id',$order['teacher_id'])->setInc('help_num'); 118 Db::name('teacher')->where('id',$order['teacher_id'])->setInc('help_num');
119 // 创建融云用户、群组 119 // 创建融云用户、群组
120 - $rongyun_chat = $this->rongyun_handle($is_one['user_id'].','.$is_one['teacher_id']); 120 + $rongyun_chat = $this->rongyun_handle($order['user_id'].','.$order['teacher_id']);
121 if($rongyun_chat) { 121 if($rongyun_chat) {
122 $update['chat_id'] = $rongyun_chat['chat_id']; 122 $update['chat_id'] = $rongyun_chat['chat_id'];
123 $update['chat_name'] = $rongyun_chat['chat_name']; 123 $update['chat_name'] = $rongyun_chat['chat_name'];