xxxrrrdddd 3 年之前
父节点
当前提交
da1f707640
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      application/service/UserOrderService.php

+ 2 - 6
application/service/UserOrderService.php

@@ -373,14 +373,10 @@ class UserOrderService{
         throw_user('上门接送类型有误');
         throw_user('上门接送类型有误');
     }
     }
     protected function recordLog($content){
     protected function recordLog($content){
-        if($this->log){
-            $this->log->setContent($content);
-        }
+        $this->log && $this->log->setContent($content);
     }
     }
     public function __destruct()
     public function __destruct()
     {
     {
-        if($this->log){
-            $this->log->write();
-        }
+        $this->log && $this->log->write();
     }
     }
 }
 }