浏览代码

fix ThirdSinopecECouponPoroduct params error

stanley-king 2 年之前
父节点
当前提交
99911ce7b4
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      helper/refill/order.php

+ 5 - 4
helper/refill/order.php

@@ -234,16 +234,14 @@ class order
             $this->mIsValidate = true;
             $this->mFirstCommit = true;
 
-            if($this->mThirdPorductType == mtopcard\ThirdElectricProduct)
-            {
+            if ($this->mThirdPorductType == mtopcard\ThirdElectricProduct) {
                 $this->mThirdExtes['company_type'] = $params['company_type'];
                 $this->mThirdExtes['use_type'] = $params['use_type'];
                 $this->mThirdExtes['province'] = $params['province'];
                 $this->mThirdExtes['city'] = $params['city'];
                 $this->mThirdExtes['card_id'] = $params['card_id'];
             }
-            elseif($this->mThirdPorductType == mtopcard\ThirdElectricProduct)
-            {
+            elseif ($this->mThirdPorductType == mtopcard\ThirdSinopecECouponPoroduct) {
                 $this->mThirdExtes['province'] = $params['province'];
             }
         }
@@ -326,6 +324,9 @@ class order
                 $ext['city'] = $this->mThirdExtes['city'];
                 $ext['card_id'] = $this->mThirdExtes['card_id'];
             }
+            elseif($this->mThirdPorductType == mtopcard\ThirdSinopecECouponPoroduct) {
+                $ext['province'] = $this->mThirdExtes['province'];
+            }
         }
 
         return $ext;