From 42d2ac64aa8080bf3ae5c705cdb668c996ccdf48 Mon Sep 17 00:00:00 2001
From: lihan <3398341942@qq.com>
Date: Fri, 26 Oct 2018 09:46:27 +0800
Subject: [PATCH] 修改bug阶段

---
 app/pay/controller/PayController.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/pay/controller/PayController.php b/app/pay/controller/PayController.php
index f3290a7..93bb751 100644
--- a/app/pay/controller/PayController.php
+++ b/app/pay/controller/PayController.php
@@ -19,7 +19,7 @@ class PayController extends HomeBaseController
             if (empty($request->param('pay_type'))) {
                 $this->success('请选择支付方式', '', false);
             }
-            $consignee = Db::name('zj_user_place')->field('name,province,city,county,mobile,place,province_id,city_id,county_id')
+            $consignee = Db::name('zj_user_place')->field('name,province,city,county,mobile,place')
                 ->where(['id' => $request->param('address_id'), 'uid' => session('user.id')])
                 ->find();
             if (session('cart.id') != null && session('goods.id') == null) {
@@ -70,9 +70,9 @@ class PayController extends HomeBaseController
                 'cid' => $request->param('cid'),
                 //二级分类字符串-1-,-2-,-3-
                 'cids' => $this->getSonCategoryStr($data),
-                'province' => $consignee['province_id'],
-                'city' => $consignee['city_id'],
-                'county' => $consignee['county_id'],
+                'province' => $consignee['province'],
+                'city' => $consignee['city'],
+                'county' => $consignee['county'],
                 'place' => $consignee['place']
             ];
             Db::startTrans();
--
libgit2 0.24.0