Kaynağa Gözat

fix lingzh callback to notify queue

stanley-king 4 yıl önce
ebeveyn
işleme
2a0384c8f9

+ 0 - 4
helper/refill/RefillBase.php

@@ -203,8 +203,6 @@ class RefillBase
     {
         $card_type = mtopcard\card_type($card_no);
         [$providers,$overload] = $this->mPolicy->find_providers($amount,$card_type,$quality);
-        Log::record(__FUNCTION__ . " 1",Log::DEBUG);
-
 
         if (empty($providers))
         {
@@ -223,7 +221,6 @@ class RefillBase
         $minfo = new member_info($buyer_id);
         $calc = new CalcMerchantPrice($mchid, $amount, $card_type,$quality);
         $mch_amount = $calc->calc_vgoods_price([]);
-        Log::record(__FUNCTION__ . " 2",Log::DEBUG);
 
         $available = $minfo->available_predeposit();
         if ($mch_amount > $available) {
@@ -234,7 +231,6 @@ class RefillBase
         $refill_state = false;
         $order_success = false;
 
-        Log::record(__FUNCTION__ . " 3 providers count = " . count($providers),Log::DEBUG);
         foreach ($providers as $provider)
         {
             $channel_name = $provider->name();

+ 1 - 3
mobile/refill_lingzh.php

@@ -1,7 +1,5 @@
 <?php
 
-require_once(BASE_HELPER_PATH . '/refill/RefillFactory.php');
-
-refill\RefillFactory::instance()->notify('lingzh',$_POST);
+refill\util::push_notify('lingzh',$_POST);
 
 echo ('ok');

+ 1 - 2
mobile/refill_lingzhdl.php

@@ -1,7 +1,6 @@
 <?php
 
-require_once(BASE_HELPER_PATH . '/refill/RefillFactory.php');
+refill\util::push_notify('lingzhdl',$_POST);
 
-refill\RefillFactory::instance()->notify('lingzhdl',$_POST);
 
 echo ('ok');

+ 1 - 1
racc/control/lzbase.php

@@ -130,7 +130,7 @@ class lzbaseControl
     {
         $msg = self::msg($code);
         $available = ncPriceFormat($available);
-        $content = "0|{$msg}|{$available}";
+        $content = "{$code}|{$msg}|{$available}";
         return $content;
     }