wugg 1 年之前
父節點
當前提交
9b36866b92
共有 1 個文件被更改,包括 1 次插入1 次删除
  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'],