xiaoyu 3 years ago
parent
commit
3e9c663236

+ 21 - 21
data/config/xyz/refill.ini.php

@@ -5386,18 +5386,18 @@ $guitong_phone = ['name' => 'guitong', 'store_id' => 210, 'qualitys' => '1',
 
 
 $jike_phone = ['name' => 'jike', 'store_id' => 211, 'qualitys' => '1',
 $jike_phone = ['name' => 'jike', 'store_id' => 211, 'qualitys' => '1',
     'amount' => [
     'amount' => [
-        10 => [
-            ['goods_id' => 7786, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7786, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 7786, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinatelecom']
-        ],
-        20 => [
-            ['goods_id' => 7787, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7787, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 7787, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinatelecom']
-        ],
+//        10 => [
+//            ['goods_id' => 7786, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7786, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7786, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+//        20 => [
+//            ['goods_id' => 7787, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7787, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7787, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
         30 => [
         30 => [
-            ['goods_id' => 7788, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7788, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinamobile'],
             ['goods_id' => 7788, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7788, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7788, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinatelecom']
             ['goods_id' => 7788, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinatelecom']
         ],
         ],
@@ -5416,16 +5416,16 @@ $jike_phone = ['name' => 'jike', 'store_id' => 211, 'qualitys' => '1',
             ['goods_id' => 7791, 'price' => 195, 'quality' => 1, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7791, 'price' => 195, 'quality' => 1, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7791, 'price' => 195, 'quality' => 1, 'card_type' => 'chinatelecom']
             ['goods_id' => 7791, 'price' => 195, 'quality' => 1, 'card_type' => 'chinatelecom']
         ],
         ],
-        300 => [
-            ['goods_id' => 7792, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7792, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 7792, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinatelecom']
-        ],
-        500 => [
-            ['goods_id' => 7793, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7793, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 7793, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinatelecom']
-        ]
+//        300 => [
+//            ['goods_id' => 7792, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7792, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7792, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+//        500 => [
+//            ['goods_id' => 7793, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7793, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7793, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ]
     ],
     ],
     'official_sn' => true, 'refill_type' => 'api'];
     'official_sn' => true, 'refill_type' => 'api'];
 
 

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

@@ -5351,18 +5351,18 @@ $huoshenguoman_phone = ['name' => 'huoshenguoman', 'store_id' => 209, 'qualitys'
 
 
 $jike_phone = ['name' => 'jike', 'store_id' => 211, 'qualitys' => '1',
 $jike_phone = ['name' => 'jike', 'store_id' => 211, 'qualitys' => '1',
     'amount' => [
     'amount' => [
-        10 => [
-            ['goods_id' => 7762, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7762, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 7762, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinatelecom']
-        ],
-        20 => [
-            ['goods_id' => 7763, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7763, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 7763, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinatelecom']
-        ],
+//        10 => [
+//            ['goods_id' => 7762, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7762, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7762, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+//        20 => [
+//            ['goods_id' => 7763, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7763, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7763, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
         30 => [
         30 => [
-            ['goods_id' => 7764, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7764, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinamobile'],
             ['goods_id' => 7764, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7764, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7764, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinatelecom']
             ['goods_id' => 7764, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinatelecom']
         ],
         ],
@@ -5381,16 +5381,16 @@ $jike_phone = ['name' => 'jike', 'store_id' => 211, 'qualitys' => '1',
             ['goods_id' => 7767, 'price' => 195, 'quality' => 1, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7767, 'price' => 195, 'quality' => 1, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7767, 'price' => 195, 'quality' => 1, 'card_type' => 'chinatelecom']
             ['goods_id' => 7767, 'price' => 195, 'quality' => 1, 'card_type' => 'chinatelecom']
         ],
         ],
-        300 => [
-            ['goods_id' => 7768, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7768, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 7768, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinatelecom']
-        ],
-        500 => [
-            ['goods_id' => 7769, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7769, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 7769, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinatelecom']
-        ]
+//        300 => [
+//            ['goods_id' => 7768, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7768, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7768, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+//        500 => [
+//            ['goods_id' => 7769, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7769, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7769, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ]
     ],
     ],
     'official_sn' => true, 'refill_type' => 'api'];
     'official_sn' => true, 'refill_type' => 'api'];
 
 

+ 1 - 0
helper/refill/api/xyz/jike/RefillCallBack.php

@@ -62,6 +62,7 @@ class RefillCallBack implements refill\IRefillCallBack
 
 
         $order_id = $order_info['order_id'];
         $order_id = $order_info['order_id'];
         $status = intval($params['status']);
         $status = intval($params['status']);
+        Model('refill_order')->edit($order_id, ['ch_trade_no' => $params['orderNo']]);
         if ($status === 1) {
         if ($status === 1) {
             return [$order_id, true, false, true];
             return [$order_id, true, false, true];
         } elseif ($status === 2 || $status === 3) {
         } elseif ($status === 2 || $status === 3) {

+ 2 - 0
helper/refill/api/xyz/jike/RefillPhone.php

@@ -74,6 +74,8 @@ class RefillPhone extends refill\IRefillPhone
             elseif($resp['code'] === '0')
             elseif($resp['code'] === '0')
             {
             {
                 $status = $resp['data']['status'];
                 $status = $resp['data']['status'];
+                $updata['ch_trade_no'] = $resp['orderNo'];
+                Model('refill_order')->edit($refill_info['order_id'], $updata);
                 if ($status === 1) {
                 if ($status === 1) {
                     $order_state = ORDER_STATE_SUCCESS;
                     $order_state = ORDER_STATE_SUCCESS;
                 } elseif ($status === 2 || $status === 3) {
                 } elseif ($status === 2 || $status === 3) {

+ 1 - 0
helper/refill/api/yl/jike/RefillCallBack.php

@@ -62,6 +62,7 @@ class RefillCallBack implements refill\IRefillCallBack
 
 
         $order_id = $order_info['order_id'];
         $order_id = $order_info['order_id'];
         $status = intval($params['status']);
         $status = intval($params['status']);
+        Model('refill_order')->edit($order_id, ['ch_trade_no' => $params['orderNo']]);
         if ($status === 1) {
         if ($status === 1) {
             return [$order_id, true, false, true];
             return [$order_id, true, false, true];
         } elseif ($status === 2 || $status === 3) {
         } elseif ($status === 2 || $status === 3) {

+ 2 - 0
helper/refill/api/yl/jike/RefillPhone.php

@@ -74,6 +74,8 @@ class RefillPhone extends refill\IRefillPhone
             elseif($resp['code'] === '0')
             elseif($resp['code'] === '0')
             {
             {
                 $status = $resp['data']['status'];
                 $status = $resp['data']['status'];
+                $updata['ch_trade_no'] = $resp['orderNo'];
+                Model('refill_order')->edit($refill_info['order_id'], $updata);
                 if ($status === 1) {
                 if ($status === 1) {
                     $order_state = ORDER_STATE_SUCCESS;
                     $order_state = ORDER_STATE_SUCCESS;
                 } elseif ($status === 2 || $status === 3) {
                 } elseif ($status === 2 || $status === 3) {