Explorar o código

RWA赠送优化

xiaodong hai 2 días
pai
achega
28e6820a00
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      application/api/controller/Chabao.php

+ 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 {
                 $order_model->saveAll($add_data);
             } catch (Exception $e) {