...
|
...
|
@@ -173,7 +173,7 @@ class PersonalcenterController extends WeChatBaseController{ |
|
|
public function set_default_address(){
|
|
|
|
|
|
$uid = cmf_get_current_user_id();
|
|
|
Db::name('address') -> where('uid',$uid) -> update(['default_address'=>1]);
|
|
|
Db::name('address') -> where('uid',$uid) -> update(['default_address'=>0]);
|
|
|
$data = Db::name('address') -> where('id',$_POST['id']) -> update(['default_address'=>1]);
|
|
|
if($data){
|
|
|
return true;
|
...
|
...
|
|