Prechádzať zdrojové kódy

weiyi update ip and account

ayHaru 3 rokov pred
rodič
commit
a48b0aae6c

+ 5 - 5
admin/templates/default/provider.successful.php

@@ -87,9 +87,9 @@
             </tr>
         </table>
     </form>
-    <div>
-        <iframe
-            src="" scrolling="no" id="Iframe" frameborder="0"></iframe>
+    <div id="box">
+        <!-- <iframe
+            src="https://www.xyzshops.cn/plot/index?time_stamp=1621488600&interval=60" scrolling="no" id="Iframe" frameborder="0"></iframe> -->
     </div>
 </div>
 <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
@@ -103,7 +103,6 @@
     $(function () {
 
         $("#Iframe").load(function(){
-            console.log(111);
             $(this).css("min-height", '900px')
             $(this).css("min-width", '1650px')
             // var iframeHeight = $(this).contents().find("html").height();
@@ -134,7 +133,8 @@
             if (!data) {
                 return
             }
-            $('iframe').attr('src',s)
+            // $('iframe').attr('src',s)
+            $('#box').html(data)
         });
 
         function TimeGetWhere(time){

+ 1 - 2
helper/refill/api/xyz/weiyi/RefillCallBack.php

@@ -36,10 +36,9 @@ class RefillCallBack implements refill\IRefillCallBack
             return [false, false, false,false];
         }
         $order_id = $order_info['order_id'];
-        
-        $data['official_sn'] = strtolower($params['serialno']) == 'null' ? '' : $params['serialno'];
 
         if ($status === 2) {
+            $data['official_sn'] = strtolower($params['serialno']) == 'null' ? '' : $params['serialno'];
             Model('refill_order')->edit($order_id, $data);
             return [$order_id, true, false,true];
         }

+ 1 - 1
helper/refill/api/xyz/weiyi/RefillPhone.php

@@ -23,7 +23,7 @@ class RefillPhone extends refill\IRefillPhone
         $params['version'] = '1.0';
         $params['packcode'] = $amount;
         $params['mobile'] = $phone;
-        $params['flowtype'] = '1001';
+        $params['flowtype'] = 'fee_quick';
         $params['callback_url'] = config::NOTIFY_URL;
         return $params;
     }

+ 4 - 4
helper/refill/api/xyz/weiyi/config.php

@@ -6,11 +6,11 @@ namespace refill\weiyi;
 
 class config
 {
-    const ORDER_URL = 'http://115.28.209.246:8081/api/charge.do';
-    const QUERY_URL = 'http://115.28.209.246:8081/api/query_chargestate.do';
+    const ORDER_URL = 'http://47.118.78.137:6066/fee/api/charge.do';
+    const QUERY_URL = 'http://47.118.78.137:6066/fee/api/query_state.do';
 
-    const USER_ID = '8177b4b1d0254c0699bc';
-    const KEY = '0fa29cd709df4ae4b592';
+    const USER_ID = '1f68bb3452134a6cbaa4';
+    const KEY = '8919a04a43b447ffae78';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/refill_weiyi.php";
 //    const NOTIFY_URL = "https://www.xyzshops.cn/mobile/signature.php";
     const ExtHeaders = ['Content-Type: application/json'];

BIN
helper/refill/api/xyz/weiyi/维一-接口文档.pdf


+ 20 - 0
helper/refill/api/xyz/weiyi/维一接口.txt

@@ -0,0 +1,20 @@
+账户名:guoyanfanglue2
+
+编码:1f68bb3452134a6cbaa4
+
+密码:a123456
+
+秘钥:8919a04a43b447ffae78
+
+手工提单密码:1234512345
+
+
+
+商户登录地址:http://47.118.78.137:6066/fee/agent/login.do
+
+
+充值请求地址:47.118.78.137:6066
+
+订单查询地址:47.118.78.137:6066
+
+余额查询地址:47.118.78.137:6066

+ 5 - 5
test/TestRefill.php

@@ -300,11 +300,11 @@ class TestRefill extends TestCase
     public function testWeiyiPhone()
     {
         $providers = new refill\weiyi\RefillPhone([]);
-        $resp = $providers->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
-//        $resp = $providers->query(['order_sn' => '59031616396534854303']);
-//        $body = '{"userid":"8177b4b1d0254c0699bc","ordernum":"59031616396534854303","mobile":"18500608333","timestamp":"20210322150437","state":"3","desc":"%E5%A4%B1%E8%B4%A5%3A%E5%A4%B1%E8%B4%A5","sign":"1d412f956c041bf4454357b209c93df6"}';
-//        $params = json_decode($body , true);
-//        refill\RefillFactory::instance()->notify('weiyi',$params);
+//        $resp = $providers->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
+//        $resp = $providers->query(['order_sn' => '90401621489214002876']);
+        $body = '{"userid":"1f68bb3452134a6cbaa4","ordernum":"90401621489214002876","mobile":"13699279618","timestamp":"20210520134039","state":"2","desc":"%E5%85%85%E5%80%BC%E6%88%90%E5%8A%9F","sign":"865e8d886b92e019df1d039fccf8df46"}';
+        $params = json_decode($body , true);
+        refill\RefillFactory::instance()->notify('weiyi',$params);
     }
 
     public function testWeiyimanPhone()