Explorar o código

RWA赠送优化

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

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

@@ -201,7 +201,12 @@ class Chabao extends Api
                 }
                 
             }
-            $order_model->saveAll($add_data);
+            try {
+                $order_model->saveAll($add_data);
+            } catch (Exception $e) {
+                Log::write('赠送RWA茶失败:'.$e->getMessage(),'info');
+            }
+            
             unset($mobile_list);
             unset($user);