zm
2021-03-29 1ecdc5ecb49d2a4e092e80cf397427cedf1f8d15
plugins/exchange/forms/api/COrderSubmitForm.php
@@ -45,9 +45,10 @@
            $info = current($this->form_data['list']);
            $code = $info['code'];
            $token = $info['token'];
            $card_no = $info['card_no'];
            $f = new FacadeAdmin();
            $f->user(\Yii::$app->user->id);
            $f->cover(\Yii::$app->mall->id, $code);
            $f->cover(\Yii::$app->mall->id, $code,$card_no);
            $rewards = \yii\helpers\BaseJson::decode($f->validate->codeModel->r_rewards);
            $f->token($rewards, $token, ['goods']);
        } catch (\Exception $e) {