正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
@@ -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 |
-
请 注册 或 登录 后发表评论