Authored by 於志远

验证秘钥必须是数字类型

@@ -44,7 +44,7 @@ class Room extends \yii\db\ActiveRecord @@ -44,7 +44,7 @@ class Room extends \yii\db\ActiveRecord
44 [['app', 'secret'], 'string', 'max' => 50], 44 [['app', 'secret'], 'string', 'max' => 50],
45 [['pic', 'background_pic'], 'string', 'max' => 255], 45 [['pic', 'background_pic'], 'string', 'max' => 255],
46 [['room_id'], 'unique'], 46 [['room_id'], 'unique'],
47 - [['room_id'], 'number'], 47 + [['room_id'], 'numerical', 'integerOnly'=>true],
48 [['secret'], 'unique'], 48 [['secret'], 'unique'],
49 [['pic', 'background_pic'], 'required'], 49 [['pic', 'background_pic'], 'required'],
50 ]; 50 ];