xiaoyu пре 3 година
родитељ
комит
078198074f

+ 1 - 1
data/config/yl/refill.ini.php

@@ -5441,7 +5441,7 @@ $phone_providers = [
 //    ['name' => 'dashang_kami', 'cfg' => $dashang_kami_phone],
     ['name' => 'yamiao_high', 'cfg' => $yamiao_high_phone],
 //    ['name' => 'yamiao_normal', 'cfg' => $yamiao_normal_phone],
-//    ['name' => 'cangxin', 'cfg' => $cangxin_phone],
+    ['name' => 'cangxin', 'cfg' => $cangxin_phone],
 //    ['name' => 'cangxin_high', 'cfg' => $cangxin_high_phone],
 //    ['name' => 'jiyemei', 'cfg' => $jiyemei_phone],
 //    ['name' => 'baixuannew_high', 'cfg' => $baixuannew_high_phone],

+ 2 - 2
helper/refill/api/yl/cangxin/config.php

@@ -10,8 +10,8 @@ class config
     const QUERY_URL = 'http://47.98.184.74:9527/order/query';
     const BALANCE_URL = 'http://47.98.184.74:9527/order/balance';
 
-    const clientId = '10025';
-    const Key = 'GeuVXsmZVhPwkqNLaL9THdAk2j5x3mJh';
+    const clientId = '10046';
+    const Key = 'l9URasvgP10FINEndLqbOKEMrJy4dtnH';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_cangxin.php";
     const PRODUCT = [
         mtopcard\ChinaMobileCard => [

+ 2 - 2
helper/refill/api/yl/cangxin/开户信息.txt

@@ -1,5 +1,5 @@
-商户号  10025
-秘钥GeuVXsmZVhPwkqNLaL9THdAk2j5x3mJh
+商户号  10046
+秘钥l9URasvgP10FINEndLqbOKEMrJy4dtnH
 对接文档https://www.showdoc.com.cn/1720387349860903/8044417869640483
 
 1320030  全国移动30元

+ 14 - 0
test/TestRefillYl.php

@@ -263,4 +263,18 @@ class TestRefillYl extends TestCase
         $ret = $provider->verify($params);
         $resp = $provider->notify($params);
     }
+
+    public function testCangxin()
+    {
+//        $provider = $this->getProvider('cangxin');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '51681648547830625598']);
+
+        $body = ' {"sysOrderNo":"R1648547869045xQhULR1","clientId":"10046","verifyString":"c5c9a7cc0e6b4ce7146c3c49646ff17d","clientOrderNo":"51681648547830625598","status":"3"}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('cangxin','RefillCallBack');
+        $ret = $provider->verify($params);
+        $resp = $provider->notify($params);
+    }
 }