wugg 2 年之前
父节点
当前提交
9012844dd6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/admin/controller/Reorder.php

+ 2 - 1
app/admin/controller/Reorder.php

@@ -48,7 +48,8 @@ class Reorder extends \app\BaseController
         }
         $rm= isset($user["data"]['id']) ?  $user["data"]['id'] : "";
         $ri= isset($user["data"]['nickname']) ?  $user["data"]['nickname'] : "";
-        $returnadr =isset($this->post['returnAddr'])&&$this->post['returnAddr']!="" ? $this->post['returnAddr']:"";
+        $returnadr =isset($this->post['returnAddr'])&& !empty($this->post['returnAddr']) ?
+                $this->post['returnAddr']:"";
         if($returnadr!=''){
             $thnum=array_sum(array_column($returnadr,"return_num"));
         }