作者 潘浩文
1 个管道 的构建 通过 耗费 1 秒

接口

@@ -112,6 +112,7 @@ class GoodsController extends RestBaseController @@ -112,6 +112,7 @@ class GoodsController extends RestBaseController
112 { 112 {
113 $param=$this->request->param(); 113 $param=$this->request->param();
114 $param['user_id']=$this->getUserId(); 114 $param['user_id']=$this->getUserId();
  115 + str_replace(',',"",$param['province']);
115 $param['create_time']=time(); 116 $param['create_time']=time();
116 if ($param['status']==1){ 117 if ($param['status']==1){
117 Db::name('address')->where('user_id',$param['user_id'])->update(['status'=>0]); 118 Db::name('address')->where('user_id',$param['user_id'])->update(['status'=>0]);