public function corpbind() { $info = array(); $field = "mi.real_name,m.busi_code,m.user_name,m.isdanbao"; $pre = C('DB_PREFIX'); $result = M("members m")->field($field)->join("{$pre}member_info mi ON m.id=mi.uid")->where("m.id={$this->uid}")->find(); $username = $result['user_name']; $busicode = $result['busi_code']; if ($result['isdanbao'] == 1) { $guartype = 'Y'; } else { $guartype = 'N'; } import("ORG.Huifu.Huifu"); $huifu = new Huifu(); $huifu->corpRegister($username, $busicode, $guartype); }