Browse Source

remove response log

stanley-king 4 years ago
parent
commit
31099912d6
2 changed files with 9 additions and 1 deletions
  1. 1 1
      helper/fcgi_server.php
  2. 8 0
      test/TestRefill.php

+ 1 - 1
helper/fcgi_server.php

@@ -173,7 +173,7 @@ class fcgi_server
             $contents = ob_get_clean();
             fcgi_echo($contents);
             Log::end_sql_log();
-            Log::record("content={$contents}",Log::DEBUG);
+//            Log::record("content={$contents}",Log::DEBUG);
 
             //fcgi_finish();//单线程的情况下不需要调用
             $msg = sprintf("request time=%.6f\r\n\r\n",microtime(true) - $start);

+ 8 - 0
test/TestRefill.php

@@ -45,6 +45,14 @@ class TestRefill extends TestCase
         $providers = refill\RefillFactory::instance();
     }
 
+    public function testBJBAddPhone()
+    {
+        global $config;
+        $providers = new refill\bjb\RefillPhone([]);
+        $resp = $providers->add(15120035568,4,50,['order_sn' => '350662047177951290']);
+
+    }
+
     public function testRefillPhone()
     {
         global $config;