作者 耿培杰

修改购物车接口

... ... @@ -21,9 +21,9 @@ class OrderAddress extends Model
$county = $areaModel->where('id',$data['county_id'])->field('name,pinyin')->find();
$data['province_name'] = $province['name'];
$data['city_name'] = $city['name'];
$data['county_name'] = $county['name'];
$data['ch_province_name'] = $province['name'];
$data['ch_city_name'] = $city['name'];
$data['ch_county_name'] = $county['name'];
$res = $this->insertGetId($data);
if ($res) return $res;
else return false;
... ...
... ... @@ -23,9 +23,9 @@ class OrderAddressInvoice extends Model
unset($data['province_id']);
unset($data['city_id']);
unset($data['county_id']);
$data['province_name'] = $province['name'];
$data['city_name'] = $city['name'];
$data['county_name'] = $county['name'];
$data['ch_province_name'] = $province['name'];
$data['ch_city_name'] = $city['name'];
$data['ch_county_name'] = $county['name'];
$res = $this->insertGetId($data);
if ($res) return $res;
else return false;
... ...