Authored by xiaowei

手机号绑定

@@ -254,13 +254,13 @@ class BindController extends AbstractAction @@ -254,13 +254,13 @@ class BindController extends AbstractAction
254 { 254 {
255 $refer = rawurldecode($refer); 255 $refer = rawurldecode($refer);
256 } 256 }
257 - 257 +
258 if (isset($res['code']) && $res['code'] == 200 && !empty($res['data']['uid'])) 258 if (isset($res['code']) && $res['code'] == 200 && !empty($res['data']['uid']))
259 { 259 {
260 $token = Helpers::makeToken($res['data']['uid']); 260 $token = Helpers::makeToken($res['data']['uid']);
261 $this->setCookie('_TOKEN', $token); 261 $this->setCookie('_TOKEN', $token);
262 $this->setSession('_TOKEN', $token); 262 $this->setSession('_TOKEN', $token);
263 - $refer = Helpers::syncUserSession($data['data']['uid'], $refer); 263 + $refer = Helpers::syncUserSession($res['data']['uid'], $refer);
264 $data = array('code' => $res['code'], 'message' => $res['message'], 'data' => array('refer' => $refer)); 264 $data = array('code' => $res['code'], 'message' => $res['message'], 'data' => array('refer' => $refer));
265 } 265 }
266 else 266 else