Authored by 毕凯

Merge branch 'hotfix/replace' into 'gray'

replace



See merge request !1282
@@ -161,13 +161,13 @@ class ProductDetail extends global.yoho.BaseModel { @@ -161,13 +161,13 @@ class ProductDetail extends global.yoho.BaseModel {
161 } 161 }
162 162
163 if (_.get(result, '[1]')) { 163 if (_.get(result, '[1]')) {
164 - result[1] = result[1].replace(/http:/g, `${params.protocol}:`); 164 + result[1] = _.toString(result[1]).replace(/http:/g, `${params.protocol}:`);
165 resu.intro = mipUtils.process(result[1]).mipHtml; 165 resu.intro = mipUtils.process(result[1]).mipHtml;
166 localCss.push(mipUtils.process(result[1]).css); 166 localCss.push(mipUtils.process(result[1]).css);
167 } 167 }
168 168
169 if (_.get(result, '[2]')) { 169 if (_.get(result, '[2]')) {
170 - result[2] = result[2].replace(/http:/g, `${params.protocol}:`); 170 + result[2] = _.toString(result[2]).replace(/http:/g, `${params.protocol}:`);
171 171
172 // 处理a标签 172 // 处理a标签
173 let option = { 173 let option = {