stanley-king 1 年之前
父節點
當前提交
7184d53145
共有 2 個文件被更改,包括 9 次插入8 次删除
  1. 5 4
      helper/refill/RefillBase.php
  2. 4 4
      rdispatcher/proxy.php

+ 5 - 4
helper/refill/RefillBase.php

@@ -409,6 +409,8 @@ class RefillBase
         }
     }
 
+
+
     public function mch_amount(order $order)
     {
         $mchid = $order->mchid();
@@ -505,17 +507,16 @@ class RefillBase
                 }
                 elseif(PolicyUtil::mixed_quality($org_quality))
                 {
-                    if(!$order->can_over_price()) {
-                        Log::record("can_over_price is false",Log::DEBUG);
+                    if (!$order->can_over_price()) {
+                        Log::record("can_over_price is false", Log::DEBUG);
                         continue;
                     } else {
-                        Log::record("can_over_price is true",Log::DEBUG);
+                        Log::record("can_over_price is true", Log::DEBUG);
                     }
                 }
                 else {
                     continue;
                 }
-
             }
 
             $mod_refill = Model('refill_order');

+ 4 - 4
rdispatcher/proxy.php

@@ -194,10 +194,10 @@ class proxy
             }
 
             if(refill\util::merchant_debt_stoped($mchid)) {
-                Log::record("merchant_debt_stoped mchid={$mchid} stoped=1",Log::DEBUG);
+                Log::record("merchant_debt_stoped mchid=$mchid stoped=1",Log::DEBUG);
                 return $this->onEerror($order, $need_callback,'米不够了.');
             } else {
-                Log::record("merchant_debt_stoped mchid={$mchid} stoped=0",Log::DEBUG);
+                Log::record("merchant_debt_stoped mchid=$mchid stoped=0",Log::DEBUG);
             }
 
             $mch_amount = refill\RefillFactory::instance()->mch_amount($order);
@@ -236,7 +236,7 @@ class proxy
                 return true;
             }
 
-            $order->set_quality($org_quality,$quality);
+            $order->set_quality($org_quality, $quality);
             if ($quality > 0)
             {
                 if($order_id > 0) {
@@ -336,7 +336,7 @@ class proxy
         Model('refill_order')->partition(util::part_refill($order_time))->edit_detail($mchid,$mch_order,['order_state' => ORDER_STATE_SEND]);
 
         [$org_quality,$quality] = refill\RefillFactory::instance()->find_quality($order);
-        Log::record("proxy::add mch_order={$mch_order} card_no = {$order->card_no()} regin_no={$order->region_no()} org_quality={$org_quality} quality={$quality}",Log::DEBUG);
+        Log::record("proxy::add mch_order={$mch_order} card_no = {$order->card_no()} regin_no={$order->region_no()} org_quality=$org_quality quality=$quality",Log::DEBUG);
         $order_id = refill\RefillFactory::instance()->zero_order($order,"手动0元订单");
 
         refill\util::pop_queue_order($mchid, $mch_order, $order_time);