| | |
| | | //不走队列 |
| | | public function showInfo() |
| | | { |
| | | \Yii::warning('h卡号04:'); |
| | | |
| | | $e = null; |
| | | $data = []; |
| | | try { |
| | |
| | | 'list' => [ |
| | | 'mode' => $mode, |
| | | 'rewards' => $rewards, |
| | | 'card_platform'=>$model->libraryModel->card_platform |
| | | 'card_platform'=>$model->libraryModel->card_platform, |
| | | 'code'=>$model->codeModel->code |
| | | ] |
| | | ]; |
| | | } catch (ExchangeException $e) { |
| | |
| | | { |
| | | \Yii::warning('h卡号30:'.$card_no); |
| | | $this->codeModel = ExchangeCode::find()->where([ |
| | | // 'code' => $code, |
| | | 'card_no' => $card_no, |
| | | 'mall_id' => $this->mall_id, |
| | | ])->one(); |
| | | \Yii::info('h卡号:' . $card_no); |
| | | \Yii::error('卡实体:' . $this->codeModel); |
| | | } |
| | | |
| | | public function setLibraryModel($library_id) |
| | |
| | | //后台 |
| | | public function admin2($mall_id, $code, $card_no) |
| | | { |
| | | \Yii::warning('h卡号05:'); |
| | | |
| | | $this->validate->setMallId($mall_id); |
| | | // 按卡号和密码验证 |
| | | // $this->validate->setCodeModel2($code,$card_no); |
| | |
| | | public function rules() |
| | | { |
| | | return [ |
| | | [['code'], 'required'], |
| | | [['code'], 'string'], |
| | | [['user_id'], 'integer'], |
| | | [['code', 'token', 'name', 'mobile','card_no','address','card_platform'], 'string'], |
| | | ]; |
| | |
| | | }).then(e => { |
| | | that.loading = false; |
| | | if (e.data.code == 0) { |
| | | that.code = that.keyword; |
| | | that.form.keyword = e.data.list.code; |
| | | that.card_no = that.cardKeyword; |
| | | that.form.rewards = e.data.list.rewards; |
| | | that.form.mode = e.data.list.mode; |