!129 手机版新建检测新消息接口,修复在某些情况JS报错问题
Merge pull request !129 from free farm./master
This commit is contained in:
parent
7b24341ec7
commit
a0b88619b7
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: checknewpm.php 35183 2017-11-03 16:46:53Z leiyu $
|
||||
*/
|
||||
|
||||
if(!defined('IN_MOBILE_API')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
$_GET['mod'] = 'spacecp';
|
||||
$_GET['ac'] = 'pm';
|
||||
$_GET['op'] = 'checknewpm';
|
||||
include_once 'home.php';
|
||||
|
||||
class mobile_api {
|
||||
|
||||
function common() {
|
||||
}
|
||||
|
||||
function output() {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
|
@ -24,7 +24,7 @@ $modules = array('extends', 'buyattachment', 'buythread', 'checkpost', 'connect'
|
|||
'modcp', 'topicadmin', 'forumimage', 'newthreads', 'signin', 'smiley', 'threadrecommend', 'check', 'mobilesign',
|
||||
'wsqindex', 'wsqsiteinfo', 'recommend',
|
||||
'wechat', 'wechat_clearlogin', 'checkinfo', 'seccodehtml',
|
||||
'showactivity', 'bestanswer', 'forummisc', 'checkcookie', 'viewcomment', 'plugin');
|
||||
'showactivity', 'bestanswer', 'forummisc', 'checkcookie', 'checknewpm', 'viewcomment', 'plugin');
|
||||
|
||||
$defaultversions = array(
|
||||
'wechat' => 4,
|
||||
|
@ -70,4 +70,4 @@ if(file_exists($apifile)) {
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -474,7 +474,7 @@ var index = {
|
|||
var script = document.createElement("script");
|
||||
script.language = "javascript";
|
||||
script.type = "text/javascript";
|
||||
script.src = SITE_INFO.siteUrl + '/home.php?mod=spacecp&ac=pm&op=checknewpm&rand=' + Math.random();
|
||||
script.src = API_URL + 'version=4&module=checknewpm&rand=' + Math.random();
|
||||
var heads = document.getElementsByTagName('head');
|
||||
if (heads.length) {
|
||||
heads[heads.length - 1].appendChild(script);
|
||||
|
@ -655,4 +655,4 @@ var throttle = {
|
|||
|
||||
$(function () {
|
||||
index.initPage();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -626,7 +626,7 @@ var dataLoaded = function (json, isInit) {
|
|||
var script = document.createElement("script");
|
||||
script.language = "javascript";
|
||||
script.type = "text/javascript";
|
||||
script.src = SITE_INFO.siteUrl + '/home.php?mod=spacecp&ac=pm&op=checknewpm&rand=' + Math.random();
|
||||
script.src = API_URL + 'version=4&module=checknewpm&rand=' + Math.random();
|
||||
var heads = document.getElementsByTagName('head');
|
||||
if (heads.length) {
|
||||
heads[heads.length - 1].appendChild(script);
|
||||
|
@ -755,4 +755,4 @@ template.helper('threadsortshowImage', function (s, attach) {
|
|||
return s;
|
||||
});
|
||||
|
||||
viewThreadInit();
|
||||
viewThreadInit();
|
||||
|
|
Loading…
Reference in New Issue