Browse Source

feihan oil

xiaoyu 1 year ago
parent
commit
93dea3b572

+ 3 - 3
helper/refill/api/xyz/oufei/RefillCallBack.php

@@ -1,7 +1,7 @@
 <?php
-namespace refill\oufei;
+namespace refill\feihan;
 
-require_once(BASE_HELPER_RAPI_PATH . '/oufei/config.php');
+require_once(BASE_HELPER_RAPI_PATH . '/feihan/config.php');
 
 use refill;
 class RefillCallBack implements refill\IRefillCallBack
@@ -17,7 +17,7 @@ class RefillCallBack implements refill\IRefillCallBack
         $order_sn = $params['sporder_id'];
         $order_info = Model('vr_order')->getOrderInfoForNotify(['order_sn' => $order_sn]);
         if (empty($order_info)) {
-//            return [false, false, false,false];
+            return [false, false, false,false];
         }
         $order_id = $order_info['order_id'];
 

+ 2 - 2
helper/refill/api/xyz/oufei/RefillOil.php

@@ -1,8 +1,8 @@
 <?php
 
-namespace refill\oufei;
+namespace refill\feihan;
 
-require_once(BASE_HELPER_RAPI_PATH . '/oufei/config.php');
+require_once(BASE_HELPER_RAPI_PATH . '/feihan/config.php');
 
 use refill;
 use Log;

+ 1 - 2
helper/refill/api/xyz/oufei/api.txt

@@ -1,10 +1,9 @@
-测试环境账号:
 userid:A230504001
 userpws:69D5C1C7B8C476A3
 keystr:736E75E8BD6A943B
 
+测试产品
 64349807  全国中石油加油卡卡密200元
-
 加油卡直充200元的商品编号 64157003
 
 http://openapi.ofpay.com

+ 2 - 4
helper/refill/api/xyz/oufei/config.php

@@ -1,7 +1,5 @@
 <?php
-
-
-namespace refill\oufei;
+namespace refill\feihan;
 
 use mtopcard;
 class config
@@ -13,7 +11,7 @@ class config
     const USER_ID = 'A230504001';
     const USER_PWS = '69D5C1C7B8C476A3';
     const KEY = '736E75E8BD6A943B';
-    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_oufei.php";
+    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_feihan.php";
     const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
 
     const ERR_NOS = [

helper/refill/api/xyz/oufei/商品编码.jpg → helper/refill/api/xyz/feihan/商品编码.jpg


+ 4 - 0
mobile/callback/refill_feihan.php

@@ -0,0 +1,4 @@
+<?php
+
+refill\util::push_notify('refill_feihan',$_POST);
+echo ('success');

+ 0 - 4
mobile/callback/refill_oufei.php

@@ -1,4 +0,0 @@
-<?php
-
-refill\util::push_notify('oufei',$_POST);
-echo ('success');