Browse Source

获取操作信息

afa 9 months ago
parent
commit
ea90f65892
1 changed files with 1 additions and 2 deletions
  1. 1 2
      application/api/controller/User.php

+ 1 - 2
application/api/controller/User.php

@@ -165,7 +165,6 @@ class User extends Api
      */
     public function getOperateLog(ProductOrder $productOrder)
     {   
-
         $typeId = $this->request->post('type_id/d', 0);
         $status = $this->request->post('status/d', 0);
         $areaId = $this->request->post('area_id/s', 0);
@@ -183,7 +182,7 @@ class User extends Api
             if($item->city > 0) $item->address_id .= $item->city.'-';
             if($item->area > 0) $item->address_id .= $item->area.'-';
             if($item->county > 0) $item->address_id .= $item->county.'-';
-            $item->address_id = rtrim($item->address_id, '-');
+            $item->address_id = rtrim($item->address_id, '-')?? '';
         }        
         $list['statusList'] = $productOrder::getStatusAll();
         $this->success('', $list);