...
|
...
|
@@ -164,7 +164,7 @@ class Index extends Frontend |
|
|
$signature = $param['signature']; // 获取数据签名。
|
|
|
$local_signature = sha1($appSecret.$nonce.$timestamp); // 生成本地签名。
|
|
|
if(strcmp($signature, $local_signature)===0){
|
|
|
$order = Db::name('order')->where('chat_id',$param['toUserId'])->find();
|
|
|
$order = Db::name('order')->where('chat_id',$param['toUserId'])->find(); // 查询房间是否存在
|
|
|
if($order) {
|
|
|
$content = str_replace('"','"',$param['content']);
|
|
|
$content = json_decode($content,true);
|
...
|
...
|
@@ -186,6 +186,7 @@ class Index extends Frontend |
|
|
default:
|
|
|
$type = 1;
|
|
|
}
|
|
|
// 消息记录
|
|
|
$send_id = Db::name('user')->where(['rongyun_id'=>$param['fromUserId']])->value('id');
|
|
|
$order_chat = [
|
|
|
'order_id' => $order['id'],
|
...
|
...
|
|