|
@@ -87,6 +87,7 @@ class Address extends Base
|
|
|
$province = Dever::input('province');
|
|
|
$city = Dever::input('city');
|
|
|
$county = Dever::input('county');
|
|
|
+ $contact = Dever::input('contact');
|
|
|
$address = Dever::input('address');
|
|
|
$country = Dever::input('country');
|
|
|
$mobile = Dever::input('mobile');
|
|
@@ -94,12 +95,16 @@ class Address extends Base
|
|
|
$house_number = Dever::input('house_number');
|
|
|
$tag = Dever::input('tag');
|
|
|
|
|
|
- return $this->upAddress($id, $uid, $type, $mobile, $province, $city, $county, $address, $country, $sex, $house_number, $tag);
|
|
|
+ return $this->upAddress($id, $uid, $type, $mobile, $contact, $province, $city, $county, $address, $country, $sex, $house_number, $tag);
|
|
|
}
|
|
|
|
|
|
# 添加或者更新地址
|
|
|
- public function upAddress($id, $uid, $type = 2, $mobile, $province = '', $city = '', $county = '', $address = '', $country = '', $sex = '', $house_number = '', $tag = '')
|
|
|
+ public function upAddress($id, $uid, $type = 2, $mobile, $contact, $province = '', $city = '', $county = '', $address = '', $country = '', $sex = '', $house_number = '', $tag = '')
|
|
|
{
|
|
|
+ if ($contact) {
|
|
|
+ $update['contact'] = $contact;
|
|
|
+ }
|
|
|
+
|
|
|
if ($country) {
|
|
|
$update['country'] = $country;
|
|
|
}
|