Jelajahi Sumber

bangyang_online add official_sn

xiaoyu 1 tahun lalu
induk
melakukan
1601cdcc49

+ 2 - 0
helper/refill/api/xyz/by_online/RefillCallBack.php

@@ -29,6 +29,8 @@ class RefillCallBack implements refill\IRefillCallBack
         $order_id = $order_info['order_id'];
 
         if ($status === 7) {
+            $data['official_sn'] = strtolower($params['charge_id']) == 'null' ? '' : $params['charge_id'];
+            Model('refill_order')->edit($order_id, $data);
             return [$order_id, true, false, true];
         } elseif (in_array($status, [3, 4, 6], true)) {
             return [$order_id, false, true, true];

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

@@ -85,6 +85,8 @@ class RefillPhone extends refill\IRefillPhone
             {
                 $status = $resp['data']['order_status'];
                 if ($status === 7) {
+                    $updata['official_sn'] = $resp['data']['charge_id'];
+                    Model('refill_order')->edit($refill_info['order_id'], $updata);
                     $order_state = ORDER_STATE_SUCCESS;
                 } elseif (in_array($status, [3, 4, 6], true)) {
                     $order_state = ORDER_STATE_CANCEL;

TEMPAT SAMPAH
helper/refill/api/xyz/by_online/纸莺运营商数据管理平台对外接口.pdf