xiaodong 2 өдөр өмнө
parent
commit
28e6820a00

+ 6 - 0
application/api/controller/Chabao.php

@@ -201,6 +201,12 @@ class Chabao extends Api
                 }
                 }
                 
                 
             }
             }
+            if(empty($user)&&!empty($ret_data)){
+                foreach ($ret_data as &$item) {
+                    $item['gift_record_type'] = 2;
+                    $item['reason'] = '手机号未注册';
+                }
+            }
             try {
             try {
                 $order_model->saveAll($add_data);
                 $order_model->saveAll($add_data);
             } catch (Exception $e) {
             } catch (Exception $e) {