zb727 il y a 1 an
Parent
commit
ea7e37504b

+ 1 - 1
helper/refill/api/mh/suhu_wozhifu/RefillPhone.php

@@ -182,7 +182,7 @@ class RefillPhone extends refill\IRefillPhone
             if (empty($resp)) {
                 return [false, '系统错误'];
             } elseif ($resp['status'] === 1) {
-                return [true, ncPriceFormat($resp['result']['money'])];
+                return [true, ncPriceFormat($resp['result']['money']+$resp['result']['grantMoney'])];
             } else {
                 return [false, $resp['msg']];
             }

+ 2 - 1
racc/callback/mh/lifang_normal.php

@@ -1,4 +1,5 @@
 <?php
-
+$content = $_SERVER['post_content'];
+Log::record("lifang_normal content=$content",Log::DEBUG);
 refill\util::push_notify('lifang_normal',$_POST);
 echo ('success');

+ 3 - 0
racc/callback/mh/suhu_normal.php

@@ -1,4 +1,7 @@
 <?php
 
+$content = $_SERVER['post_content'];
+Log::record("suhu_normal content=$content",Log::DEBUG);
+
 refill\util::push_notify('suhu_normal',$_POST);
 echo ('ok');

+ 3 - 0
racc/callback/mh/suhu_wozhifu.php

@@ -1,4 +1,7 @@
 <?php
 
+$content = $_SERVER['post_content'];
+Log::record("suhu_wozhifu content=$content",Log::DEBUG);
+
 refill\util::push_notify('suhu_wozhifu',$_POST);
 echo ('ok');

+ 1 - 1
test/mh/TestRefill.php

@@ -44,7 +44,7 @@ class TestRefill extends TestCase
     {
         $provider = $this->getProvider('suhu_normal');
         $order_sn = $this->make_sn();
-        $resp = $provider->add(13911129867, 5, 30, ['order_sn' => $order_sn, 'regin_no' => 1]);
+        $resp = $provider->add(13167599238, 5, 100, ['order_sn' => $order_sn, 'regin_no' => 1]);
         $resp = $provider->query(['order_sn' => $order_sn]);
         $resp = $provider->balance();
     }