var httpRequest = function() {
var $this = this;
$this.data = {};
$this.host = APP_BASE.domain + '/api/';
$this.addData = function(key, value) {
$this.data[key] = value;
};
$this.request = function(url, method, callback, asynch) {
asynch = asynch == null ? true : asynch;
var data = new FormData();
var appVersion = myStorage.getItem('app_version');
data.append('version', appVersion);
data.append('method', method);
data.append('access_token', APP_BASE.access_token);
for (key in $this.data) {
data.append(key, $this.data[key]);
}
var XML = new XMLHttpRequest();
var XMLtimeout = setTimeout(function(){
toast.info('网络连接超时,请检查网络');
if(XML)XML.abort();
},80000);
XML.onreadystatechange = function() {
if (XML.readyState == 4) {
var result;
if(XMLtimeout)clearTimeout(XMLtimeout); //模拟的超时处理机制
try{
result = JSON.parse(XML.responseText);
}catch(e){
var errorInfo = XML.responseText.match(/<p class="font">[^<]+<\/p>/g);
toast.hideLoading();
if(e instanceof SyntaxError){
console.log('错误的数据接口:' + url);
// toast.info('网络连接超时,请检查网络');
}
result = {info:'网络连接超时,请检查网络',code:400};
}
callback(result);
}
};
XML.open('POST', $this.host + url, asynch);
XML.send(data);
};
(function($, owner) {
var obi=false;
/**
* 获取模块配置
* @param {Array|String} modName
* @param {Function} callback
*/
owner.getModConfig = function(modName,callback){
callback = callback || $.noop;
modName = modName||'';
if(modName instanceof Array){
modName = modName.join();
}
var request = new httpRequest();
request.addData('name', modName);
request.get('config/getmodconfig/', function(res) {
callback(res);
});
};
}(mui, window.app = {}));
mui.plusReady(function(){
selfWeb = plus.webview.currentWebview();
//断网情况
if(plus.networkinfo.getCurrentType() == plus.networkinfo.CONNECTION_NONE){
mui.toast('当前网络不可用');
}
//获取客户端配置信息
app.getModConfig(null,function(res){
if(res.data && res.data.base){
myStorage.setItem('app_config',JSON.stringify(res.data));
}else{
toast.info('配置信息获取失败,请通知网站管理员!');
}
})
}
3***@qq.com (作者)
添加了。上边截图AAAA通过了
2017-06-21 11:33
回梦無痕
配置了ipv6重新提交还是拒绝吗?,我之前也遇到这个问题,配置完,出现了上面那个截图后,我本地没测试就重新提交了,通过了。。。
2017-06-21 11:39
回梦無痕
本地应该是测试不了ipv6的吧?我们网络环境都没有ipv6解析,中国大部分网络设备没有做ipv6路由指向,我猜的,因为我在本地host文件里给我的域名加上ipv6地址解析,并不能访问,提示无法解析DNS。要测试可能需要到美国的服务器上以ipv6类型访问我们的服务器才可以测试。
2017-06-21 12:03
3***@qq.com (作者)
回复 回梦無痕:又被拒了还是相同问题,本地mac 模拟ipv6环境偶尔能请求到数据。我ugc加举报了。
2017年6月21日 下午10:20
发件人 Apple
Guideline 1.2 - Safety - User Generated Content
Your app contains user-generated content or services that are likely to attract pornographic content.
Please see attached screenshots for examples of sexually explicit content.
Next Steps
To resolve this issue, please remove all content that is similar in nature to the attached examples.
Additionally, apps that provide user-generated content must also provide the following user protection:
Request a phone call from App Review
At your request, we can arrange for an Apple Representative to call you within the next three business days to discuss your App Review issue. Our representative will be able to discuss the issue in English or Chinese.
To request a call and ensure we have accurate contact information, reply directly to this message with a contact name and direct phone number to reach you.
申请应用审核团队致电联系
如果您有需要,我们将根据您的要求在三个工作日内安排一位精通中文的苹果公司代表致电与您联系,讨论您的应用审核结果。
为了确保我们有正确的联系资料,请回复这封邮件并提供您的姓名与电话号码。
申請應用審核團隊致電聯繫
如果您有需要,我們將根據您的要求在三個工作日內安排一位精通中文的蘋果公司代表致電與您聯繫,討論您的應用審核結果。
為了確保我們有正確的聯繫資料,請回覆這封郵件並提供您的姓名與電話號碼。
Guideline 2.1 - Performance - App Completeness
We discovered one or more bugs in your app when reviewed on iPad Air 2 and iPhone 6s running iOS 10.3.2 on Wi-Fi connected to an IPv6 network.
Specifically, your app does not load/display content properly on 红人 page after launch.
Please refer to the attached screenshot for more information.
Next Steps
To resolve this issue, please run your app on a device to identify any issues, then revise and resubmit your app for review.
If we misunderstood the intended behavior of your app, please reply to this message in Resolution Center to provide information on how these features were intended to work.
For new apps, uninstall all previous versions of your app from a device, then install and follow the steps to reproduce the issue. For updates, install the new version as an update to the previous version, then follow the steps to reproduce the issue.
Resources
For information about testing your app and preparing it for review, please see Technical Note TN2431: App Testing Guide.
For a networking overview, please review About Networking. For a more specific overview of App Review’s IPv6 requirements, please review the IPv6 and App Review discussion on the Apple Developer Forum.
2017-06-22 17:27
回梦無痕
如果没有开ATS,开启ATS比较好,审核政策里说过,没有开启ATS的,会审查严格一点。
ipv6的问题我按照这个解决的
1.创建隧道教程(这个教程走到第2步就可以了):http://www.cnblogs.com/vijayfly/p/6612771.html
2.后续步骤(接着前面教程第2步):https://bbs.aliyun.com/read/299254.html
2017-06-22 19:11
回梦無痕
我另外一个APP是通过给海外线路套CDN的方法通过审核的。
2017-06-22 19:13
3***@qq.com (作者)
回复 回梦無痕:后边这两种方案我都试了。也找了中转代理。现在本地模拟还是不稳定。我加了举报和拉黑还是被拒,被拒理由没变
2017-06-27 08:14