/** * 检测一个openid在悟空是否注册 * * @access public * @return void * @example * <pre> * /index.php?m=native&c=user&a=checkLaiwangUser&uid=1 * </pre> */ public function checkLaiwangUserAction() { $openid = $this->getInput('uid'); $result = PwLaiWangSerivce::selectProfile($openid); // $this->setOutput($result ? '1' : '0', 'data'); $this->showMessage('success'); }