xiaoyu 1 tahun lalu
induk
melakukan
e43f3f701b

+ 1 - 1
helper/refill/api/yl/by_online/API信息.txt

@@ -3,7 +3,7 @@
 
 APPid:7
 version 1.0 版本号 默认 1.0
-APPSecret:Hfhsej959g58Efrusk22uoOAA5AmxYLu
+APPkey:Hfhsej959bReF4B
 
 
 1 北京

+ 1 - 1
helper/refill/api/yl/by_online/RefillPhone.php

@@ -19,7 +19,7 @@ class RefillPhone extends refill\IRefillPhone
         $params['appId'] = config::APP_ID;
         $params['version'] = '1.0';
         $params['merchantOrderNo'] = $order_sn;
-        $params['productId'] = config::ProductIdS[$card_type][$amount];
+        $params['productId'] = 1;
         $params['account'] = "{$phone}";
         $params['amt'] = $amount * 100;
         $params['callbackUrl'] = config::NOTIFY_URL;

+ 2 - 29
helper/refill/api/yl/by_online/config.php

@@ -8,39 +8,12 @@ class config
     const QUERY_URL = 'http://commapi.bjzykj.work/comm/orderQuery';
     const BALANCE_URL = 'http://commapi.bjzykj.work/comm/account';
 
-    const APP_ID = '1';
-    const APP_KEY = 'Hfhsej959g58Efrusk22uoOAA5AmxYLu';
+    const APP_ID = '7';
+    const APP_KEY = 'Hfhsej959bReF4B';
 //    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_by_online.php";
     const NOTIFY_URL = "https://www.xyzshops.cn/mobile/signature.php";
-
     const ExtHeaders = ['Content-Type: application/json'];
 
-    const ProductIdS = [
-        mtopcard\ChinaMobileCard =>
-            [
-                50  => '10003',
-                100 => '10004',
-                200 => '10005',
-                300 => '10006',
-                500 => '10007',
-            ],
-        mtopcard\ChinaUnicomCard =>
-            [
-                50  => '1',
-                100 => '10012',
-                200 => '10013',
-                300 => '10014',
-            ],
-        mtopcard\ChinaTelecomCard =>
-            [
-                50  => '10019',
-                100 => '10020',
-                200 => '10021',
-                300 => '10022',
-                500 => '10023',
-            ],
-    ];
-
     public static function sign($params)
     {
         ksort($params);

+ 2 - 2
test/TestRefillYl.php

@@ -986,9 +986,9 @@ class TestRefillYl extends TestCase
 //        $provider = $this->getProvider('by_online');
 //        $resp = $provider->balance();
 //        $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 1]);
-//        $resp = $provider->query(['order_sn' => '70831682580641580700']);
+//        $resp = $provider->query(['order_sn' => '13041683603793048767']);
 
-        $body = '{"appId":"1","merchantorder_no":"70831682580641580700","order_sn":"2023042715304843866056509749","pay_mobile":"18500608333","amount":"5000","real_price":"5000","order_status":"7","extra":"","pay_time":"2023-04-27 15:30:48","completion_time":"2023-04-27 15:30:48","sign":"4ac35a9afc969eb7ad972d43909c8b41"}';
+        $body = '{"appId":"1","merchantorder_no":"13041683603793048767","order_sn":"2023050911432028374556511004","pay_mobile":"18500608333","amount":"5000","real_price":"5000","order_status":"7","extra":"","pay_time":"2023-05-09 11:43:22","completion_time":"2023-05-09 11:43:22","sign":"bdf57f1437a1ee4cdbbe62f0f44e98cd"}';
         $params = json_decode($body, true);
         $provider = $this->getProvider('by_online', 'RefillCallBack');
         $ret = $provider->verify($params);