Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/mip custom novel #1273

Merged
merged 17 commits into from
Nov 8, 2018
Merged

Feat/mip custom novel #1273

merged 17 commits into from
Nov 8, 2018

Conversation

Espoir-L
Copy link
Member

提交pr时需要关联issue,请大家遵守
#1272
1、升级点 (清晰准确的描述升级的功能点)
配合小说的广告计算展现不同广告

2、影响范围 (描述该需求上线会影响什么功能)
已经做小流量命中小流量,有影响

3、自测 checklist
chrome

4、需要覆盖的场景和case

  • 是否覆盖了sf打开mip页
  • 是否验证了极速服务mip页面效果

5、自测机型和浏览器

  • 是否覆盖了ios系统手机
  • 是否覆盖了安卓系统手机
  • 是否覆盖了iphone版式浏览器(比如qq、uc、chrome、safari、安卓自带浏览器)
  • 是否覆盖了手百

温馨提示:非 mip-extensions 仓库的组件请在组件平台提交,否则一律打回;

@mipengine-bot
Copy link
Member

mipengine-bot commented Oct 30, 2018

部署成功,请访问地址获取编译代码。

Built with commit b839ad8

https://deploy-preview-1273--mip-extensions.netlify.com

var novelInstance = isRootPage ? currentWindow.MIP.novelInstance : currentWindow.parent.MIP.novelInstance
var adsCache = novelInstance.adsCache || {}
var me = this;
var novelAds = adsCache.adStategyCacheData.template;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些数据都不用做存在性的判断么

var adsCache = novelInstance.adsCache || {}
var me = this;
var novelAds = adsCache.adStategyCacheData.template;
if (novelAds) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Array.isArray 来判断数组吧

var novelAds = adsCache.adStategyCacheData.template;
if (novelAds) {
novelAds.map(function (value) {
value.map(function (ad) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里要判断数据是否是数组么

huanghuiquan
huanghuiquan previously approved these changes Nov 7, 2018
Copy link
Contributor

@tayqassqan tayqassqan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Espoir-L Espoir-L merged commit 79208fd into master Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants