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

5

... ... @@ -141,7 +141,7 @@ class PersonalcenterController extends WeChatBaseController{
*/
public function shop_address(){
$data = Db::name('address') -> select();
$data = Db::name('address') -> where("delete_time = 0") -> select();
$this -> assign('data',$data);
return $this -> fetch();
... ... @@ -188,7 +188,8 @@ class PersonalcenterController extends WeChatBaseController{
*/
public function address_del(){
$data = Db::name('address') -> delete($_POST['id']);
$delete_time = time();
$data = Db::name('address') -> where('id',$_POST['id']) -> update(['delete_time'=>$delete_time]);
if($data){
return true;
}else{
... ...