| | 359 | ==== 2.4详情页面增加链接列表 ==== |
| | 360 | {{{ |
| | 361 | 主题/帖子终端:http://bbs.pcauto.com.cn/appapi/1/forum/topic.do |
| | 362 | 对应:主题终端页面 |
| | 363 | |
| | 364 | 动态详情:http://club.pcauto.com.cn/appapi/4.0/dyna/getDynaDetail.do |
| | 365 | 对应:http://trac.pc.com.cn/iphone/wiki/pcauto_club_4.4.0/api#a2.1%E5%8A%A8%E6%80%81%E8%AF%A6%E6%83%85 |
| | 366 | |
| | 367 | |
| | 368 | 私信详情:http://bip.pcauto.com.cn/intf/privateDialogue.jsp |
| | 369 | 对应:http://trac.pc.com.cn/iphone/wiki/pcauto_club_4.4.0/api#a2.3%E7%A7%81%E4%BF%A1%E5%AF%B9%E8%AF%9D%E5%88%97%E8%A1%A8 |
| | 370 | |
| | 371 | |
| | 372 | -------------------------------------------------------------------------------------------------------------------------------- |
| | 373 | 对上面3个接口的内容进行过滤,把所有链接提取,并返回链接列表,接口增加字段内容如下: |
| | 374 | urlList: [ |
| | 375 | { |
| | 376 | url:原链接 |
| | 377 | target:转换后的链接 |
| | 378 | }, |
| | 379 | { |
| | 380 | url:原链接 |
| | 381 | target:转换后的链接 |
| | 382 | } |
| | 383 | ] |
| | 384 | |
| | 385 | -------------------------------------------------------------------------------------------------------------------------------- |
| | 386 | 规则:如果详情内容中,包括下面几个种链接需要转换,否则target=url |
| | 387 | 话题: |
| | 388 | PC:http://club.pcauto.com.cn/topic/2861.html |
| | 389 | APP:pcautoclub://club-talk/id |
| | 390 | |
| | 391 | 动态(除活动外): |
| | 392 | PC:http://my.pcauto.com.cn/31182785/dt/3038457/ |
| | 393 | APP:pcautoclub://club-dyna/id |
| | 394 | |
| | 395 | 帖子: |
| | 396 | PC:http://bbs.pcauto.com.cn/topic-8324623.html |
| | 397 | APP:pcautoclub:/bbs-topic/id |
| | 398 | |
| | 399 | |
| | 400 | }}} |
| | 401 | |