|
|
@@ -214,6 +214,9 @@ class ChatController extends BaseController
|
|
|
{
|
|
|
$key = Yii::$app->request->post('key');
|
|
|
$keyArr = explode('-', $key);
|
|
|
+ if (count($keyArr) != 3) {
|
|
|
+ util::error(-1, '校验失败,key格式错误');
|
|
|
+ }
|
|
|
$shopId = intval($keyArr[0]);
|
|
|
if ($shopId != $this->shopId) {
|
|
|
util::error(-1, '校验失败');
|