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

14

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