wugg 1 year ago
parent
commit
9b36866b92
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/Filing.php

+ 1 - 1
app/admin/controller/Filing.php

@@ -716,7 +716,7 @@ class Filing extends Base
                 $addrid = Db::name('order_addr')->insertGetId([
                     'orderCode' => $orderCode,
                     'addr' => $addr['addr'],
-                    'addr_code' => implode(',', $addr['addr_code']),
+                    'addr_code' =>empty( $addr['addr_code'])?"": implode(',', $addr['addr_code']),
                     'contactor' => $addr['contactor'],
                     'mobile' => $addr['mobile'],
                     'customer_code' => $param['customerCode'],