Authored by 於志远

验证秘钥必须是数字类型

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