...
|
...
|
@@ -95,7 +95,9 @@ class RegisterController extends WeChatBaseController |
|
|
//个人信息ajax提交
|
|
|
public function postInfo(){
|
|
|
$param=$this->request->param();
|
|
|
$param['birthday']=strtotime( $param['birthday']);
|
|
|
$arr = date_parse_from_format('Y年m月d日',$param['birthday']);
|
|
|
$param['birthday'] = mktime(0,0,0,$arr['month'],$arr['day'],$arr['year']);
|
|
|
// $param['birthday']=strtotime( $param['birthday']);
|
|
|
$param['status']=1;
|
|
|
$re=Db::name('users')->where('open_id',session('wechat_user')['id'])->update($param);
|
|
|
if ($re){
|
...
|
...
|
|