Explorar el Código

jumi_sec callback official_sn

xiaoyu hace 2 años
padre
commit
494541cce9
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      helper/refill/api/xyz/jumi_sec/RefillCallBack.php

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

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