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) {