1, //已登录,返回登录的用户信息 "user"=>array( "user_id"=>$wgUser['mid'], "nickname"=>$wgUser['nickname']), "img_url"=>"", "profile_url"=>"", "sign"=>"**" //注意这里的sign签名验证已弃用,任意赋值即可 ); }else{ $ret=array("is_login"=>0);//未登录 } echo $_GET['callback'].'('.json_encode($ret).')'; } public function loginout(){ $wgUser=session('member_auth'); if($wgUser['mid']==0){ $return=array( 'code'=>1, 'reload_page'=>0 ); }else{ $return=array( 'code'=>1, 'reload_page'=>1 ); } } public function test() { $this->assign('user_id',"1"); $this->assign('game_id',"1"); // $this->display("Spend/pay_way"); $this->display("WapPay/wap_shortcut_pay"); # code... } }