wugg 2 years ago
parent
commit
9012844dd6
1 changed files with 2 additions and 1 deletions
  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'] : "";
         $rm= isset($user["data"]['id']) ?  $user["data"]['id'] : "";
         $ri= isset($user["data"]['nickname']) ?  $user["data"]['nickname'] : "";
         $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!=''){
         if($returnadr!=''){
             $thnum=array_sum(array_column($returnadr,"return_num"));
             $thnum=array_sum(array_column($returnadr,"return_num"));
         }
         }