stanley-king 1 bulan lalu
induk
melakukan
16c320cf2e

+ 1 - 1
helper/refill/CalcMerchantPrice.php

@@ -22,7 +22,7 @@ class CalcMerchantPrice implements ICalc
             $pcode = $other['product_code'];
         }
 
-        $price = $policy->price($mchid,$spec,$card_type,$quality,$pcode);
+        $price = $policy->price($mchid, $spec, $card_type, $quality, $pcode);
         if ($price === false or $price <= 0.01) {
             throw new Exception("没有协商商品购买价格.");
         } else {

+ 1 - 0
helper/refill/RefillBase.php

@@ -447,6 +447,7 @@ class RefillBase
         }
     }
 
+
     //返回值:[ 错误码,错误信息,订单ID,是否是网络错误]
     //说明:错误码为true 表示成功
     //     其它情况,则需要判断订单ID

+ 5 - 0
helper/refill/order.php

@@ -10,6 +10,7 @@ class order
     private $mMchid;
     private $mBuyerId;
     private $mAmount;
+//    private $mMchAmount;
     private $mCardNo;
     private $mMchOrder;
     private $mNotifyUrl;
@@ -50,6 +51,7 @@ class order
         $this->mMchCardTypes = [];
         $this->mFirstQuality = 0;
         $this->mOverPriceFlag = 0;
+//        $this->mMchAmount = 0.0001;
     }
 
     public function finish()
@@ -296,6 +298,9 @@ class order
         $this->mIsTransfer = $refill_info['is_transfer'] == 1;
         $this->mIsValidate = mtopcard\is_validate($this->mCardState);
 
+//        $this->mQuantity = intval($order_info['goods_num']);
+
+
         if (!empty($third_info) && $this->is_third()) {
             $this->mProductCode = $third_info['product_code'];
             $this->mThirdPorductType = $third_info['third_product_type'];

+ 1 - 0
rdispatcher/proxy.php

@@ -212,6 +212,7 @@ class proxy
 
         [$org_quality, $quality] = refill\RefillFactory::instance()->find_quality($order, $skip);
         $order->set_quality($org_quality,$quality);
+
         if($quality == 0) {
             return $this->onEerror($order, $need_callback,'找不到合适质量的通道');
         }