作者 anyv
1 个管道 的构建 通过 耗费 0 秒

14

... ... @@ -28,6 +28,7 @@ class OrderpageController extends WeChatBaseController{
$address = Db::name('address') -> where("uid=".$uid." and default_address=1 and delete_time = 0") -> find();
if(empty($address)){
$this -> assign('address',4);
$this -> assign('address_id','');
}else{
$indet_data = Db::name('indent') -> where("id",$indet_id['indet_id']) -> find();
if($indet_data['state'] == 4){
... ... @@ -38,6 +39,7 @@ class OrderpageController extends WeChatBaseController{
Db::name('indent') -> update($indet_data_update);
}
$this -> assign('address',$address);
$this -> assign('address_id','');
}
}
... ...