plugins/exchange/forms/api/CodeForm.php | ●●●●● patch | view | raw | blame | history |
plugins/exchange/forms/api/CodeForm.php
@@ -16,12 +16,13 @@ class CodeForm extends Model { public $code; public $card_no; public function rules() { return [ [['code'], 'required'], [['code'], 'string'], [['code','card_no'], 'string'], ]; } @@ -84,6 +85,7 @@ $codeModel = ExchangeCode::find()->where([ 'AND', ['code' => $this->code], ['card_no' => $this->card_no], ['in', 'status', [2, 3]], ['r_user_id' => \Yii::$app->user->id] ])->one();