xiaoyu %!s(int64=3) %!d(string=hai) anos
pai
achega
e0cc900b1b

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

@@ -5376,7 +5376,7 @@ $phone_providers = [
 //
 //    ['name' => 'moxj_new', 'cfg' => $moxj_new_phone],
 //    ['name' => 'kangkai', 'cfg' => $kangkai_phone],
-//    ['name' => 'lechong', 'cfg' => $lechong_phone],
+    ['name' => 'lechong', 'cfg' => $lechong_phone],
 //    ['name' => 'xinhengyang', 'cfg' => $xinhengyang_phone],
 //    ['name' => 'miaoxt', 'cfg' => $miaoxt_phone],
 //    ['name' => 'tianyan', 'cfg' => $tianyan_phone],

+ 4 - 4
helper/refill/api/yl/lechong/account.txt

@@ -8,9 +8,9 @@
 注册地址:http://121.196.177.34:1012/agent/login
 
 
-商户编号:202108021753
-秘钥:5BCE4762BC53B3EECB113A0285BF64DC
+商户编号:202203241556
+密钥:0FA5A1C794CFA1BAE3B960F1413453FD
 乐充时代
-账号:yezi
-密码:123456
+账号:椰林
+密码:yelin131419
 http://121.196.177.34:1012/agent/login

+ 2 - 3
helper/refill/api/yl/lechong/config.php

@@ -6,13 +6,12 @@ namespace refill\lechong;
 use mtopcard;
 class config
 {
-    //957
     const ORDER_URL = 'http://121.196.177.34:1012/api/md5/submitorder';
     const QUERY_URL= 'http://121.196.177.34:1012/api/md5/queryorder';
     const BALANCE_URL= 'http://121.196.177.34:1012/api/md5/getbalance';
 
-    const AgentCode= '202108021753';
-    const KEY = '5BCE4762BC53B3EECB113A0285BF64DC';
+    const AgentCode= '202203241556';
+    const KEY = '0FA5A1C794CFA1BAE3B960F1413453FD';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_lechong.php";
     const operator = [
         mtopcard\ChinaMobileCard  => [

+ 15 - 0
test/TestRefillYl.php

@@ -109,4 +109,19 @@ class TestRefillYl extends TestCase
         $ret = $provider->verify($params);
         $resp = $provider->notify($params);
     }
+
+    public function testLechong()
+    {
+        $provider = $this->getProvider('lechong');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '65361648114672703928']);
+
+        $body = '{"sellerid":"65361648114672703928","agentcode":"202203241556","account":"MTg1MDA2MDgzMzM=","value":"50","payvalue":"47.8000","voucher":"","createtime":"20220324173803","endtime":"20220324173857","state":"4","remark":"","time":"20220324174224","sign":"8a2c011095cadb6dc5abd00c25a11d1c"}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('lechong','RefillCallBack');
+        $ret = $provider->verify($params);
+        $resp = $provider->notify($params);
+    }
+
 }