stanley-king 3 gadi atpakaļ
vecāks
revīzija
8ddcbcebb8

+ 2 - 2
core/framework/db/mysqli.php

@@ -134,8 +134,8 @@ class Db
             {
                 $eno = mysqli_errno(self::$link[$host]);
                 $emsg = mysqli_error(self::$link[$host]);
-                $error = "Db Error eno={$eno} msg={$emsg}";
-                Log::record("{$error} \r\n sql={$sql}", Log::ERR);
+                $error = "DbError eno={$eno} msg={$emsg}";
+                Log::record("{$error} sql={$sql}", Log::ERR);
 
                 if (self::$ifTransacting) {
                     throw_exception($error);

+ 3 - 3
core/framework/function/http.php

@@ -75,7 +75,7 @@ function http_request($url, $params = array(), $method = 'GET', $multi = false,
         $code = curl_getinfo($ci,CURLINFO_HTTP_CODE);
         if($code != 200) {
             $net_errno = "HTTP-{$code}";
-            Log::record("netmodule http_request http errno={$code} url={$url}",Log::ERR);
+            Log::record("netmodule http_request http errno={$net_errno} url={$url}",Log::ERR);
         }
     }
 
@@ -119,7 +119,7 @@ function http_post_data($url, $body, $headers = array(),&$net_errno = 0)
         $code = curl_getinfo($ci,CURLINFO_HTTP_CODE);
         if($code != 200) {
             $net_errno = "HTTP-{$code}";
-            Log::record("netmodule http_request http errno={$code} url={$url}",Log::ERR);
+            Log::record("netmodule http_request http errno={$net_errno} url={$url}",Log::ERR);
         }
     }
     curl_close($ci);
@@ -191,7 +191,7 @@ function https_request($url, $params = array(), $method = 'GET', $multi = false,
         $code = curl_getinfo($ci,CURLINFO_HTTP_CODE);
         if($code != 200) {
             $net_errno = "HTTP-{$code}";
-            Log::record("netmodule http_request http errno={$code} url={$url}",Log::ERR);
+            Log::record("netmodule http_request http errno={$net_errno} url={$url}",Log::ERR);
         }
     }
     curl_close($ci);

+ 1 - 1
helper/refill/RefillBase.php

@@ -354,7 +354,7 @@ class RefillBase
                     $start = microtime(true);
                 }
 
-                $result = $logic_buy_virtual->buyStep3($input, $buyer_id, [$calc, 'calc_vorder_amount'], true,false);
+                $result = $logic_buy_virtual->buyStep3($input, $buyer_id, [$calc, 'calc_vorder_amount'], true, false);
                 if ($result['state'] === true)
                 {
                     $order_sn = $result['data']['order_sn'];

+ 0 - 4
helper/refill/api/test/baidu/RefillPhone.php

@@ -31,10 +31,6 @@ class RefillPhone extends refill\IRefillPhone
 
     public function add($card_no, $card_type, $amount, $params,&$net_errno = 0)
     {
-        $params = $this->req_params($card_no, $amount, $card_type, $params['order_sn']);
-        $sign = $this->sign($params);
-        $params['sign'] = $sign;
-
         Log::record("start request",Log::DEBUG);
         sleep(1);