您的位置:首页 > 理论基础 > 计算机网络

iOS美丽约网络请求分析

2015-12-05 12:25 666 查看


网络请求分析html, body {overflow-x: initial !important;}html { font-size: 14px; }
body { margin: 0px; padding: 0px; height: auto; bottom: 0px; top: 0px; left: 0px; right: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.42857143; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255); overflow-x: hidden; }
a:active, a:hover { outline: 0px; }
::selection { background-color: rgb(181, 214, 252); text-shadow: none; background-position: initial initial; background-repeat: initial initial; }
#write { margin: 0px auto; height: auto; width: inherit; word-break: normal; word-wrap: break-word; position: relative; white-space: pre-wrap; text-align: justify; padding-bottom: 70px; }
body.typora-export { padding-left: 30px; padding-right: 30px; }
.typora-export #write { margin: 0px auto; }
#write > p:first-child, #write > ul:first-child, #write > pre:first-child, #write > blockquote:first-child, #write > div:first-child { margin-top: 30px; }
img { max-width: 100%; }
input, button, select, textarea { color: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; }
input[type="checkbox"], input[type="radio"] { line-height: normal; padding: 0px; }
::before, ::after, * { box-sizing: border-box; }
#write p, #write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write div, #write pre { width: inherit; }
#write p, #write h1, #write h2, #write h3, #write h4, #write h5, #write h6 { position: relative; }
h1 { font-size: 2rem; }
p, .mathjax-block { display: block; -webkit-margin-before: 1rem; -webkit-margin-after: 1rem; -webkit-margin-start: 0px; -webkit-margin-end: 0px; }
.hidden { display: none; }
.md-blockmeta { color: rgb(204, 204, 204); font-weight: bold; font-style: italic; }
a { cursor: pointer; }
#write input[type="checkbox"] { cursor: pointer; width: inherit; height: inherit; margin: 4px 0px 0px; }
tr { page-break-inside: avoid; page-break-after: auto; }
thead { display: table-header-group; }
table { border-collapse: collapse; border-spacing: 0px; width: 100%; overflow: auto; page-break-inside: auto; }
table.md-table td { min-width: 80px; }
.CodeMirror-placeholder { opacity: 0.3; }
.CodeMirror-code pre { padding: 0px; }
.CodeMirror-lines { padding: 0px; }
div.hr:focus { cursor: none; }
.md-fences, pre.md-fences { font-size: 0.9rem; display: block; page-break-inside: avoid; text-align: left; overflow: visible; white-space: pre; position: relative !important; }
.md-fences .CodeMirror.cm-s-default.CodeMirror-wrap { top: -1.6em; margin-bottom: -1.6em; }
.md-fences.mock-cm { white-space: pre-wrap; }
.footnotes { color: rgb(136, 136, 136); font-size: 0.9rem; padding-top: 1em; padding-bottom: 1em; }
.footnotes + .footnotes { margin-top: -1em; }
.md-reset { margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: top; background-color: transparent; text-decoration: none; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 1rem; text-shadow: none; float: none; position: static; width: auto; height: auto; white-space: nowrap; cursor: inherit; line-height: normal; font-weight: normal; text-align: left; box-sizing: content-box; direction: ltr; background-position: initial initial; background-repeat: initial initial; }
li div { padding-top: 0px; }
blockquote { margin: 1rem 0px; }
li p, li .mathjax-block { margin: 0.5rem 0px; }
li { margin: 0px; position: relative; }
blockquote > :last-child { margin-bottom: 0px; }
blockquote > :first-child { margin-top: 0px; }
.footnotes-area { color: rgb(136, 136, 136); margin-top: 0.714rem; padding-bottom: 0.143rem; }
@media print {
html, body { height: 100%; }
.typora-export * { -webkit-print-color-adjust: exact; }
}
.footnote-line { margin-top: 0.714em; font-size: 0.7em; }
a img, img a { cursor: pointer; }
#write pre.md-meta-block { font-size: 0.8rem; min-height: 2.86rem; white-space: pre; background-color: rgb(204, 204, 204); display: block; background-position: initial initial; background-repeat: initial initial; }
p > .md-image:only-child { display: inline-block; width: 100%; text-align: center; }
#write .MathJax_Display { margin: 0.8em 0px 0px; }
.mathjax-block { white-space: pre; padding-bottom: 0.65rem; overflow: hidden; width: 100%; }
p + .mathjax-block { margin-top: -1.143rem; }
.mathjax-block:not(:empty)::after { display: none; }
[contenteditable="true"]:active, [contenteditable="true"]:focus { outline: none; box-shadow: none; }
:focus { outline: none; box-shadow: rgb(79, 172, 249) 0px 0px 2px 3px, rgb(120, 174, 218) 0px 0px 2px inset; }
.task-list { list-style-type: none; }
.task-list-item { position: relative; padding-left: 1em; }
.task-list-item input { position: absolute; top: 0px; left: 0px; }
.math { font-size: 1rem; }
.md-toc { min-height: 3.58rem; position: relative; font-size: 0.9rem; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; }
.md-toc-content { position: relative; margin-left: 0px; }
.md-toc::after, .md-toc-content::after { display: none; }
.md-toc-item { display: block; color: rgb(65, 131, 196); text-decoration: none; }
.md-toc-inner:hover { text-decoration: underline; }
.md-toc-inner { display: inline-block; cursor: pointer; }
.md-toc-h1 .md-toc-inner { margin-left: 0px; font-weight: bold; }
.md-toc-h2 .md-toc-inner { margin-left: 2em; }
.md-toc-h3 .md-toc-inner { margin-left: 4em; }
.md-toc-h4 .md-toc-inner { margin-left: 6em; }
.md-toc-h5 .md-toc-inner { margin-left: 8em; }
.md-toc-h6 .md-toc-inner { margin-left: 10em; }
.md-toc-h6 { margin-left: 12em; }
@media screen and (max-width: 48em) {
.md-toc-h3 .md-toc-inner { margin-left: 3.5em; }
.md-toc-h4 .md-toc-inner { margin-left: 5em; }
.md-toc-h5 .md-toc-inner { margin-left: 6.5em; }
.md-toc-h5 .md-toc-inner { margin-left: 8em; }
.md-toc-h6 { margin-left: 9.5em; }
}
a.md-toc-inner { color: inherit; font-size: inherit; font-style: inherit; font-weight: inherit; text-decoration: inherit; line-height: inherit; }
.footnote-line a:not(.reversefootnote) { color: inherit; }
.md-attr { display: none; }
.md-fn-count::after { content: '.'; }
.md-tag { opacity: 0.5; }
h1 .md-tag, h2 .md-tag, h3 .md-tag, h4 .md-tag, h5 .md-tag, h6 .md-tag { font-weight: initial; opacity: 0.35; }
a.md-header-anchor.md-print-anchor { border: none !important; display: inline-block !important; position: absolute !important; width: 1px !important; right: 0px !important; outline: none !important; background-color: transparent !important; text-shadow: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; }

html { font-size: 16px; }
html, body { background-color: rgb(243, 242, 238); font-family: 'PT Serif'; color: rgb(31, 9, 9); line-height: 1.5em; }
#write { max-width: 36em; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote::before, blockquote::after, q::before, q::after { content: none; }
table { border-collapse: collapse; border-spacing: 0px; }
h1, h2, h3, h4, h5, h6 { font-weight: bold; }
h1 { font-size: 1.875em; line-height: 1.6em; margin-top: 2em; }
h2, h3 { font-size: 1.3125em; line-height: 1.15; margin-top: 2.285714em; margin-bottom: 1.15em; }
h3 { font-weight: normal; }
h4 { font-size: 1.125em; margin-top: 2.67em; }
h5, h6 { font-size: 1em; }
h1 { border-bottom-width: 1px; border-bottom-style: solid; margin-bottom: 1.875em; padding-bottom: 0.8125em; }
a { text-decoration: none; color: rgb(6, 85, 136); }
a:hover, a:active { text-decoration: underline; }
p, blockquote, pre.md-fences, .md-fences { margin-bottom: 1.5em; }
h1, h2, h3, h4, h5, h6 { margin-bottom: 1.5em; }
blockquote { font-style: italic; border-left-width: 5px; border-left-style: solid; margin-left: 2em; padding-left: 1em; }
ul, ol { margin: 0px 0px 1.5em 1.5em; }
ol li { list-style-type: decimal; list-style-position: outside; }
ul li { list-style-type: disc; list-style-position: outside; }
.md-meta, .md-before, .md-after { color: rgb(153, 153, 153); }
table { margin-bottom: 1.5em; font-size: 1em; }
thead th, tfoot th { padding: 0.25em 0.25em 0.25em 0.4em; text-transform: uppercase; }
th { text-align: left; }
td { vertical-align: top; padding: 0.25em 0.25em 0.25em 0.4em; }
code, pre.md-fences { background-color: rgb(218, 218, 218); padding-left: 1ch; padding-right: 1ch; }
pre.md-fences { margin-left: 2em; margin-bottom: 3em; }
pre, code, tt { font-size: 0.875em; line-height: 1.714285em; }
h1 { line-height: 1.3em; font-weight: normal; margin-bottom: 0.5em; }
p + ul, p + ol { margin-top: -1em; }
h3 + ul, h4 + ul, h5 + ul, h6 + ul, h3 + ol, h4 + ol, h5 + ol, h6 + ol { margin-top: 0.5em; }
li > ul, li > ol { margin-top: inherit; }
h2, h3 { margin-bottom: 0.75em; }
hr { border-style: none none solid; border-bottom-width: 1px; }
h1 { border-color: rgb(197, 197, 197); }
blockquote { border-color: rgb(186, 186, 186); color: rgb(101, 101, 101); }
thead.md-table-edit { background-color: transparent; }
thead { background-color: rgb(218, 218, 218); }
tr:nth-child(even) { background-color: rgb(232, 231, 231); background-position: initial initial; background-repeat: initial initial; }
hr { border-color: rgb(197, 197, 197); }
.task-list { padding-left: 1rem; }
.task-list-item { padding-left: 1.5rem; list-style-type: none; }
.task-list-item input::before { content: '√'; display: inline-block; width: 1.25rem; height: 1.5rem; vertical-align: middle; text-align: center; color: rgb(221, 221, 221); background-color: rgb(243, 242, 238); }
.task-list-item input:checked::before, .task-list-item input[checked]::before { color: inherit; }
#write pre.md-meta-block { min-height: 1.875rem; color: rgb(85, 85, 85); border: 0px; background-color: transparent; margin-left: 1em; margin-top: 1em; background-position: initial initial; background-repeat: initial initial; }
.md-image > .md-meta { color: rgb(155, 81, 70); }
.md-expand.md-image > .md-meta { background-color: rgba(255, 255, 255, 0.65098); }
.md-image > .md-meta { font-family: Menlo, 'Ubuntu Mono', Consolas, 'Courier New', 'Microsoft Yahei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif; }
#write > h3.md-focus::before { left: -2.5rem; color: rgb(153, 153, 153); border-color: rgb(153, 153, 153); }
#write > h4.md-focus::before { left: -2.5rem; top: 0.25rem; color: rgb(153, 153, 153); border-color: rgb(153, 153, 153); }
#write > h5.md-focus::before { left: -2.5rem; color: rgb(153, 153, 153); border-color: rgb(153, 153, 153); }
#write > h6.md-focus::before { left: -2.5rem; top: 0.3125rem; color: rgb(153, 153, 153); border-color: rgb(153, 153, 153); }
.md-toc:focus .md-toc-content { margin-top: 19px; }
.md-toc-content:empty::before { color: rgb(6, 85, 136); }
.md-toc-item { color: rgb(6, 85, 136); }
#write div.md-toc-tooltip { background-color: rgb(243, 242, 238); }
#outline-dropmenu { background-color: rgb(243, 242, 238); -webkit-box-shadow: rgba(0, 0, 0, 0.372549) 0px 6px 12px; box-shadow: rgba(0, 0, 0, 0.372549) 0px 6px 12px; }
.pin-outline #outline-dropmenu { background-image: inherit; background-size: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: inherit; box-shadow: none; border-right-width: 1px; border-right-style: dashed; background-position: inherit inherit; background-repeat: inherit inherit; }
.pin-outline #outline-dropmenu:hover .outline-title-wrapper { border-left-width: 1px; border-left-style: dashed; }
.outline-item:hover { background-color: rgb(218, 218, 218); border-left-width: 18px; border-left-style: solid; border-left-color: rgb(218, 218, 218); border-right-width: 18px; border-right-style: solid; border-right-color: rgb(218, 218, 218); }
.outline-expander::before { content: ''; font-family: FontAwesome; font-size: 14px; top: 1px; }
.outline-expander:hover::before, .outline-item-open > .outline-item > .outline-expander::before { content: ''; }

iOS美丽约网络请求分析登录配置UA请求响应url动态配置UI动态配置个人信息网络通讯配置(带key)音频录制配置上传图片配置(带key)定位配置视频录制背景音乐配置百度统计?(key)网址白名单动态配置发起约会的可选事件UI动态配置底部toolbar个人中心配置其他设置UI中使用字符串常量使用

iOS美丽约网络请求分析

登录配置

序号说明
_uai,9.1,0,43,appstore,24f7971b1d8x235874c61e95391ca6e5,640,1136,0,cn,723431cc04094f264afd47fe61dfe09d
__clttzaeiou33931343
idfa418C8R58-71D8-46A7-BF75-9CD698830180
carrier中国电信
last_sync_mtime0
open_type0
is_watch0
is_wifi1
可以看到统计到有UA,idfa,哪个运营商,是否为watchOS,是否为wifi

UA

参数_ua

值i,9.1,0,43,appstore,24f7971b1d8x235874c61e95391ca6e5,640,1136,0,cn,723431cc04094f264afd47fe61dfe09d

大约有的字段有

系统版本
软件版本
下载渠道
idfa
屏幕分辨率
国家/时区

请求响应

url动态配置

可以动态配置请求的url,呵呵

"videoauth_url": "http://mapi.miliyo.com/auth_web/auth_video/?_sid=menu_my",
"videoauth_url": "http://mapi.miliyo.com/auth_web/auth_video/?_sid=menu_my",
"carauth_url": "http://mapi.miliyo.com/car/index/?_sid=menu_my",

UI动态配置

"movie_manual_text": {
"cinema_list": [
"选择地点",
"地点由对方定",
"我都可以",
"任意影院"
],
"show_list": [
"先约人",
"约会时间不确定?",
"约到人我买票",
"先买票",
"(购票表诚意)"
]
},

个人信息

"myinfo": {
"uid": 32931341,
"sex": 1,
"is_videoauth": 0,
"push_sound_time": "23,9",
"face_url": "http://pic2.miliyo.com/mapi/i/noface/s1.png?gv=198_1",
"big_face_url": "http://pic2.miliyo.com/mapi/i/noface/s1.png?gv=198_1",
"nickname": "🌰",
"country": "CN",
"location_prov": "地球",
"location_city": "火星",
"is_vip": 0,
"vip_type": 0,
"is_ssc": 0,
"full_power": 100,
"have_power": 100,
"key_num": 5,
"gold_num": 0,
"age": 24,
"vip_ico": "http://pic2.miliyo.com/mapi/i/menu/vip_0@3x.png?gv=198_1",
"videoauth_photo_url": "http://pic2.miliyo.com/mapi/i/menu/icon_no_certification@3x.png?gv=198_1",
"videoauth_status": 0,
"videoauth_status_1": "认证形象视频",
"videoauth_status_2": "回头率大涨",
"facevideo": {
"button_1": {
"text": "查看",
"videoauth_url": "http://video2.miliyo.com/a/f6/84/f6844a671f9e1fa31d7d9d9d313c3821.mp4"
},
"button_2": {
"text": "修改",
"videoauth_url": "http://mapi.miliyo.com/auth_web/auth_video/?_sid=menu_my"
}
},
"is_car_auth": 0,
"carauth_status_1": "车辆未认证",
"carauth_status_2": "点击认证"
},

网络通讯配置(带key)

"socket": {
"host": "58.215.161.200",
"prot": 9000,
"port": 9000,
"timeout": 50000,
"heartDelay": 60000,
"reconnectDelay": 5000,
"disablePushSound": false,
"pushInterval": false,
"loginString": "LOGIN,33931343,24f7971b1d8d235874c61e95391ca4e5,1,ce25a2337a0b40c99e1f011003f9c803"
},

音频录制配置

"audio": {
"recordSampleRate": 8000,
"recordQuality": 0,
"recordChannel": 1,
"encodeQuality": 2,
"encodeSampleRate": 8000
},

上传图片配置(带key)

"upload": {
"uid": 33931343,
"time": 1451879092,
"key": "027edde5aec1529f37e54bf171983280",
"params": {
"width": 960,
"height": 960,
"quality": 0.5,
"min_width": 480,
"minResolution": 260
},
"chat_upload_params": {
"width": 640,
"height": 5000,
"quality": 0.5,
"min_width": 480,
"minResolution": 160
},
"chat_socket_uploads": 1
},

定位配置

"lbs": {
"lbsPushInterval": 3,
"minLngDiff": 0.0055,
"minLatDiff": 0.0045,
"desiredAccuracy": 100,
"distanceFilter": 1000,
"maxSecondsForCachedLocation": 30,
"updatingTimeout": 5,
"minAccuracy": 2000,
"exMinAccuracy": 500,
"exUpdatingTimeout": 8,
"exDesiredAccuracy": 100,
"renewInterval": 1800,
"renewTimeoutAdd": 15,
"desiredAccuracy2G": 1000,
"distanceFilter2G": 1500,
"maxSecondsForCachedLocation2G": 30,
"updatingTimeout2G": 10,
"minAccuracy2G": 2500,
"exMinAccuracy2G": 1500,
"exUpdatingTimeout2G": 15,
"exDesiredAccuracy2G": 1000
},

视频录制背景音乐配置

"bgmusic": {
"shortbg": [
{
"title": "FunPack",
"img": "http://pic2.miliyo.com/mapi/i/bgmusic/music_cover_funpack@3x.png?gv=138_1",
"mp3": "http://pic2.miliyo.com/mapi/i/bgmusic/FunPack.mp3?gv=138_1"
},
{
"title": "Happiness",
"img": "http://pic2.miliyo.com/mapi/i/bgmusic/music_cover_happines@3x.png?gv=138_1",
"mp3": "http://pic2.miliyo.com/mapi/i/bgmusic/Happiness.mp3?gv=138_1"
}
]
},

百度统计?(key)

"baidu_key": "CDwvkWt2rdTBIGiKIeZ9CIpy"

网址白名单

"domain_white_list": [
"miliyo.com",
"alipay.com",
"paypal.com",
"weibo.com",
"qq.com",
"dianping.com",
"baidu.com",
"google.com",
"taobao.com",
"niupai.com",
"jjdd.com",
"91.com",
"apple.com",
"kenmuqi.com",
"mmzhibo.com"
],

动态配置发起约会的可选事件

"event_group": [
{
"desc": "全部活动"
},
{
"desc": "看电影"
}
],


UI动态配置

底部toolbar

"menu_bottom": [
{
"id": "search_user",
"default_open": 1,
"desc": "首页",
"type": 2,
"action": "nearby",
"data": {
"url": "http://mapi.miliyo.com/search/nearby/",
"title": "首页"
},
"ico_type": 1,
"ico": "http://pic2.miliyo.com/mapi/i/menu/button_home_normal@2x.png?gv=138_1",
"selected_ico": "http://pic2.miliyo.com/mapi/i/menu/button_home_focused@2x.png?gv=138_1"
},
{
"id": "search_event_same_city",
"desc": "邀约",
"type": 2,
"action": "event_list",
"data": {
"url": "http://mapi.miliyo.com/dating/index/",
"title": "邀约"
},
"ico_type": 1,
"ico": "http://pic2.miliyo.com/mapi/i/menu/button_date_normal@2x.png?gv=138_1",
"selected_ico": "http://pic2.miliyo.com/mapi/i/menu/button_date_focused@2x.png?gv=138_1"
},
{
"id": "attention",
"desc": "动态",
"type": 1,
"action": "attention",
"data": {
"url": "http://mapi.miliyo.com/attention/index/?type=2&_sid=menu",
"title": "动态"
},
"ico_type": 1,
"ico": "http://pic2.miliyo.com/mapi/i/menu/button_find_normal@2x.png?gv=138_1",
"selected_ico": "http://pic2.miliyo.com/mapi/i/menu/button_find_focused@2x.png?gv=138_1"
},
{
"id": "my",
"desc": "我的",
"type": 2,
"action": "my",
"data": {
"url": "http://mapi.miliyo.com/menu/my/",
"title": "我的"
},
"ico_type": 1,
"ico": "http://pic2.miliyo.com/mapi/i/menu/button_mine_normal@2x.png?gv=138_1",
"selected_ico": "http://pic2.miliyo.com/mapi/i/menu/button_mine_focused@2x.png?gv=138_1"
}
],


个人中心配置

"menu_my": [
[
{
"id": "msg",
"type": 2,
"action": "chat_list",
"desc": "消息",
"ico_type": 1,
"ico": "http://pic2.miliyo.com/mapi/i/menu/mine_ico_massage@2x.png?gv=138_1"
},
{
"id": "comment",
"type": 1,
"action": "http://mapi.miliyo.com/attention/user_attention/?uid=33931343&_sid=menu",
"desc": "随便说说",
"ico_type": 1,
"ico": "http://pic2.miliyo.com/mapi/i/menu/my_comment@2x.png?gv=138_1"
},
{
"id": "visit",
"type": 2,
"action": "visit",
"desc": "最近来访",
"ico_type": 1,
"ico": "http://pic2.miliyo.com/mapi/i/menu/mine_ico_visit@2x.png?gv=138_1"
}
],
[
{
"id": "my_event",
"type": 2,
"action": "my_event",
"desc": "我的邀约",
"ico_type": 1,
"ico": "http://pic2.miliyo.com/mapi/i/menu/invite@2x.png?gv=138_1"
},
{
"id": "account",
"type": 1,
"action": "http://mapi.miliyo.com/user/my_account/?_sid=menu",
"desc": "我的账户",
"ico_type": 1,
"ico": "http://pic2.miliyo.com/mapi/i/menu/mine_ico_account@2x.png?gv=138_1"
}
],
[
{
"id": "kiss",
"type": 2,
"action": "kiss",
"desc": "啵一下",
"ico_type": 1,
"ico": "http://pic2.miliyo.com/mapi/i/menu/mine_ico_kiss@2x.png?gv=138_1"
},
{
"id": "find",
"type": 1,
"action": "http://mapi.miliyo.com/other/find/?_sid=menu",
"desc": "发现",
"ico_type": 1,
"ico": "http://pic2.miliyo.com/mapi/i/menu/mine_ico_find@2x.png?gv=138_1",
"has_new": 1
}
]
],

其他设置

{
"sys_voice_translation": 1,
"visit_new": 0,
"msg_unread": 0,
"publish_new": 0,
"join_new": 0,
"notification_unread": 1,
"kiss_new": 0,
"push_detail_hidden": 0,
"push_visit": 1,
"push_sex_event": 1,
"fans_new": 0,
"friend_new": 0,
"fans_count": 0,
"follow_count": 0,
"attention_new": 0,
"attention_com_new": 1,
"kiss_count": 0,
"http_interval": 180,
"same_city_new": 0,
"ok": 1,
"menu": [],
"tool_bar": [],

"event_order_group": [
{
"desc": "按发布时间",
"order": "add_time"
},
{
"desc": "按距离",
"order": "distance"
}
],
"chat_default": "voice",
"menu_setting": {
"id": "setting",
"type": 1,
"action": "http://mapi.miliyo.com/setting/index/",
"desc": "设置",
"ico_type": 1,
"ico": "http://pic2.miliyo.com/mapi/i/menu/ico_set@2x.png?gv=138_1",
"has_new": 0
},
"menu_attention": [
{
"id": "attention_my",
"is_default": 0,
"data": {
"url": "http://mapi.miliyo.com/attention/index/?type=1&_sid=my",
"title": "关注"
}
},
{
"id": "attention_plaza",
"is_default": 1,
"data": {
"url": "http://mapi.miliyo.com/attention/index/?type=2&_sid=plaza",
"title": "同城"
}
},
{
"id": "attention_hot",
"is_default": 0,
"data": {
"url": "http://mapi.miliyo.com/attention/index/?type=3&_sid=hot",
"title": "推荐"
}
}
],
"menu_dating": [
{
"event_type": -1,
"title": "全部"
},
{
"event_type": 5,
"title": "旅行"
},
{
"event_type": 6,
"title": "吃饭"
},
{
"event_type": 2,
"title": "电影"
},
{
"event_type": 3,
"title": "唱歌"
},
{
"event_type": 4,
"title": "运动"
},
{
"event_type": 0,
"title": "征婚",
"event_group": 1
},
{
"event_type": 0,
"title": "其他",
"event_group": 0
}
],
"menu_board": null,
"request_mtime": "1449287092148210",
"default_search_type": "online",
"default_dating_order": "0",
"comment_new": 0
}

UI中使用字符串常量使用

全部封装到一个网络请求中去了,呵呵,这样请求下来,保存到文件,还是保存到NSUserDefaults之类,达到动态调整提示文案。

{
"ok": 1,
"lang": {
"kMLYCore_CountsMinutesAgo": "分钟前",
"kGIFT_TIP_GIRL_AGREE_GIVE_NUMBER": "若女生同意约会,系统将告知双方手机号",
"kMSG_WAIT_REPLY_POP_CHOOSE_REPLY": "选择一句回复对方",
"kPUBLIC_PLEASE_WAIT": "请稍等…",
"kPHOTO_BROWSER_ALREADY_SAVED": "已保存",
... : ....
"kAuthVideoUpdate_Tip_StartMliliyo": "^_^拍摄成功,视频将对外展示。您可以在“我的”页面里修改"
}
}


undefined
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: