Discuz!教程之打开论坛首页显示正在等待notice.uchome.manyou.com的响应问题解决

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/lih062624/article/details/79879882
由于Discuz!云平台和漫游平台停止运营,造成Discuz!请求漫游接口时长时间无响应,论坛首页打开速度非常慢!有些版本的DZ后台有云平台开关可以直接关闭漫游,但是一些版本后台是没有云平台这个菜单的,目前只有通过修改程序的方式来实现解决题目中的问题!
打开文件:/source/class/helper/helper_manyou.php
找到
public static function checkupdate() {
	global $_G;
	if($_G['setting']['my_app_status'] && empty($_G['setting']['my_closecheckupdate']) && $_G['group']['radminid'] == 1) {
		$sid = $_G['setting']['my_siteid'];
		$ts = $_G['timestamp'];
		$key = md5($sid.$ts.$_G['setting']['my_sitekey']);
		echo '<script type="text/javascript" src="http://notice.uchome.manyou.com/notice?sId='.$sid.'&ts='.$ts.'&key='.$key.'" charset="UTF-8"></script>';
	}
}
改成以下内容
public static function checkupdate() {


}
上传覆盖文件,修改完成!
展开阅读全文

正在等待 localhost 的响应

08-20

对三张表多作保存和修改操作:(用到的框架是 springMVC)rnservice层:rn @Transactionalrn @Overridern public Map saveProjectAccount(ProjectAccountDomain accountDomain, OaApplyInfoDomain oa) rn throws RuntimeException, SQLExceptionrn Map resmap = new HashMap();rn tryrn //生成存款账号主键rn String accountCode=commonService.getSeqNo("PROJECT_ACCOUNT", "PROJECT_ACCOUNT_CODE", "INVMDATA");rn accountDomain.setProjectAccountCode(accountCode);rn oa.setBusinessNo(accountCode);rn rn //保存存款账户rn escrowAccountSellerDao.saveProjectAccount(accountDomain);rn rn Map map = new HashMap();rn map.put("trusteeAccount", accountCode);rn map.put("projectNo", accountDomain.getProjectNo());rn rn // 将托管账户信息与项目关联rn updateProjectTrusteeAccount(map);rn rn // 保存 OArn String oaCode = insertOA(oa);rn rn resmap.put("projectAccountCode", accountCode);rn resmap.put("oaCode", oaCode);rn return resmap;rn catch(RuntimeException re)rn throw new RuntimeException("保存托管账户信息出错!");rn rn rn //return accountCode;rn rn rn /**rn * @doc 保存 OA 信息rn * @param oarn * @returnrn */rn @Overridern public String insertOA(OaApplyInfoDomain oa) throws RuntimeException rn String code=commonService.getSeqNo("OA_APPLY_INFO", "OA_CODE", "INVMDATA");rn rn try rn oa.setApplyDate(new Date(new java.util.Date().getTime()));rn oa.setApplicantDept(commonService.getDeptid(oa.getApplicant()));rn oa.setOaCode(code);rn escrowAccountSellerDao.insertOA(oa);rn catch(RuntimeException re) rn throw new RuntimeException("保存托管账户信息出错!");rn rn rn return code;rn rn rn /**rn * 将 托管账户信息和立项项目信息关联起来rn * @param maprn * @throws RuntimeExceptionrn */rn @Overridern public void updateProjectTrusteeAccount(Map map) throws RuntimeExceptionrn try rn escrowAccountSellerDao.updateProjectTrusteeAccount(map);rn catch(RuntimeException re) rn throw new RuntimeException("保存托管账户信息出错!");rn rn rnrndao 层:rn /**rn * 保存账户信息rn * @param accountDomainrn */rn public void saveProjectAccount(ProjectAccountDomain accountDomain)rn this.getSqlMapClientTemplate().insert(namespace+".saveProjectAccount", accountDomain);rn rn rn /**rn * 保存 OA 信息rn * @param oarn */rn public void insertOA(OaApplyInfoDomain oa)rn this.getSqlMapClientTemplate().insert(namespace+".insertOA",oa);rn rn rn /**rn * 将 托管账户信息和立项项目信息关联起来rn * @param maprn */rn public void updateProjectTrusteeAccount(Map map) rn this.getSqlMapClientTemplate().update(namespace+".updateProjectTrusteeAccount",map);rn rnrn在页面点击 “保存” ,数据没有写到数据库中,提示 :正在等待 localhost 的响应。这是什么原因??求大神帮忙! 论坛

没有更多推荐了,返回首页