浏览代码

RWA赠送优化

xiaodong 2 天之前
父节点
当前提交
34d98b2c54
共有 1 个文件被更改,包括 6 次插入1 次删除
  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);