HansRove / XiMaLY

多加入了几个界面,完善了几个接口。作为毕业设计,去掉了论坛这个公司的功能。
79 stars 26 forks source link

iOS 10 网络请求错误 #1

Open jiazufei opened 7 years ago

jiazufei commented 7 years ago

Request Path: http://mobile.ximalaya.com/mobile/discovery/v1/recommends, params { channel = "and-f5"; device = ios; includeActivity = true; includeSpecial = true; scale = 2; version = "4.3.26.2"; } 2017-03-03 16:00:08.618373 XiMaLY[4507:1402842] {0, 0} 2017-03-03 16:00:08.785888 XiMaLY[4507:1402842] GET ERROR: { NSErrorFailingURLKey = "http://mobile.ximalaya.com/mobile/discovery/v1/recommends?channel=and-f5&device=ios&includeActivity=true&includeSpecial=true&scale=2&version=4.3.26.2"; NSErrorFailingURLStringKey = "http://mobile.ximalaya.com/mobile/discovery/v1/recommends?channel=and-f5&device=ios&includeActivity=true&includeSpecial=true&scale=2&version=4.3.26.2"; NSLocalizedDescription = "The Internet connection appears to be offline."; NSUnderlyingError = "Error Domain=kCFErrorDomainCFNetwork Code=-1009 \"(null)\" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}"; "_kCFStreamErrorCodeKey" = 50; "_kCFStreamErrorDomainKey" = 1; }

HansRove commented 7 years ago

NSLocalizedDescription = "The Internet connection appears to be offline.";

HansRove commented 7 years ago

那个问题是说明你没联网请求,我亲自在虚拟机跑了一下,首页是没有问题的。至于你那个问题我猜想可能是因为iOS10 bug之一, 初装软件无法联网问题。http://bbs.25pp.com/thread-486561-1-1.html 你看下这篇,我虚拟机是iOS10.2没问题

jiazufei commented 7 years ago

问题已经解决,谢谢

另外代码部分好像没有找到CoreData数据库实现部分?论文中提及了

HansRove commented 7 years ago

....那论文并不是我的,我去年的毕业论文也是基本参考它写的,我项目中的存储 只是用简单的plist文件存储,比如个人信息页的账号密码,还有下载的音乐等。。时间太久我也快忘记了,因为项目里面命名及其不规范也懒得维护了!!最近正在尝试RN 或者 Weex开发尝试

jiazufei commented 7 years ago

好的,谢谢,我尝试的理解YYCache,看看能不能把首页数据缓存,然后把理论实现过程写在论文里,这样答辩讲一下理论实现可以吗? 最近RN 或者 Weex不是被苹果拒审了嘛