最新服务器上的版本,以后用这个
zhangmeng
2023-04-18 efd2f8bb0856bdbcac265a5a28d70b2d155a9522
兑换时改成只输入卡号,不验证密码
5 files modified
14 ■■■■■ changed files
plugins/exchange/forms/exchange/ExchangeFactory.php 5 ●●●● patch | view | raw | blame | history
plugins/exchange/forms/exchange/validate/BasicModel.php 3 ●●●●● patch | view | raw | blame | history
plugins/exchange/forms/exchange/validate/FacadeAdmin.php 2 ●●●●● patch | view | raw | blame | history
plugins/exchange/forms/mall/RecordForm.php 2 ●●● patch | view | raw | blame | history
plugins/exchange/views/code/index.php 2 ●●● patch | view | raw | blame | history
plugins/exchange/forms/exchange/ExchangeFactory.php
@@ -66,6 +66,8 @@
    //不走队列
    public function showInfo()
    {
        \Yii::warning('h卡号04:');
        $e = null;
        $data = [];
        try {
@@ -109,7 +111,8 @@
                'list' => [
                    'mode' => $mode,
                    'rewards' => $rewards,
                    'card_platform'=>$model->libraryModel->card_platform
                    'card_platform'=>$model->libraryModel->card_platform,
                    'code'=>$model->codeModel->code
                ]
            ];
        } catch (ExchangeException $e) {
plugins/exchange/forms/exchange/validate/BasicModel.php
@@ -57,12 +57,9 @@
    {
        \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)
plugins/exchange/forms/exchange/validate/FacadeAdmin.php
@@ -34,6 +34,8 @@
    //后台
    public function admin2($mall_id, $code, $card_no)
    {
        \Yii::warning('h卡号05:');
        $this->validate->setMallId($mall_id);
        // 按卡号和密码验证
        // $this->validate->setCodeModel2($code,$card_no);
plugins/exchange/forms/mall/RecordForm.php
@@ -28,7 +28,7 @@
    public function rules()
    {
        return [
            [['code'], 'required'],
            [['code'], 'string'],
            [['user_id'], 'integer'],
            [['code', 'token', 'name', 'mobile','card_no','address','card_platform'], 'string'],
        ];
plugins/exchange/views/code/index.php
@@ -439,7 +439,7 @@
                }).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;