|
@@ -41,7 +41,6 @@ class Http {
|
|
|
},
|
|
|
method: 'POST'
|
|
|
}
|
|
|
-
|
|
|
Taro.request({
|
|
|
url,
|
|
|
data,
|
|
@@ -52,41 +51,8 @@ class Http {
|
|
|
reject(data)
|
|
|
return
|
|
|
}
|
|
|
- const mockData = {
|
|
|
- "code": 0,
|
|
|
- "msg": "success",
|
|
|
- "data": {
|
|
|
- "ownPlatformAlliance": {
|
|
|
- "adType": "ownPlatformAlliance",
|
|
|
- "platformCreativeInfo": {
|
|
|
- "id": 3403,
|
|
|
- "creativeCode": "CREATIVE_17096086444271430",
|
|
|
- "adId": 1136,
|
|
|
- "adCode": "AD_17095512471071489",
|
|
|
- "campaignId": 172,
|
|
|
- "campaignCode": "CAMPAIGN_17024525411821220",
|
|
|
- "advertiserId": 332,
|
|
|
- "advertiserCode": "ADA_17024523941341815",
|
|
|
- "creativePattern": 3,
|
|
|
- "creativeTitle": "联盟广告测试",
|
|
|
- "copywriting": "111",
|
|
|
- "materialType": "VIDEO",
|
|
|
- "materialAddress": "http://rescdn.yishihui.com/ad/transcode/prod/video/material_CREATIVE_17096086444271430_1709608644427.mp4",
|
|
|
- "creativeLogoAddress": "http://rescdn.yishihui.com/ad/prod/image/logo_1709608644242.png",
|
|
|
- "clickButtonText": "按钮啊啊",
|
|
|
- "clickButtonColor": "#00C25D",
|
|
|
- "clickButtonEffects": 0,
|
|
|
- "landingPageType": 2,
|
|
|
- "landingPageAddress": "https://nbtga.whjiaoy.com/putin/linkTovnn7Pb?ewpCode=10008&channel=786&subChannel=415&lxqAdid=pqAdOpDrKrMMm8",
|
|
|
- "positionId": 13,
|
|
|
- "adpId":"xxxxxx",
|
|
|
- "trafficCode":"ATP182138123"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- "success": true
|
|
|
- }
|
|
|
- resolve(mockData || data)
|
|
|
+
|
|
|
+ resolve(data)
|
|
|
},
|
|
|
fail(res) {
|
|
|
reject(res)
|
|
@@ -122,7 +88,7 @@ export function wrapData(params) {
|
|
|
}
|
|
|
|
|
|
export function createBaseInfoToFetchData(data) {
|
|
|
- const baseKey = ['token', 'loginUid', 'appType', 'machineCode', 'platform', 'machineInfo', 'networkType', 'pageSource', 'rootPageSource', 'clientTimestamp', 'sessionId', 'subSessionId', 'requestId', 'pageCategoryId', 'rootPageCategoryId', 'openType', 'shareDepth', 'eventId', 'videoReportMeta', 'rootPageTimestamp', 'returnId', 'system']
|
|
|
+ const baseKey = ['appType', 'machineCode', 'platform', 'machineInfo', 'network', 'clientTimestamp', 'requestId', 'eventId', 'system']
|
|
|
|
|
|
return Object.keys(data).reduce((calc, key) => {
|
|
|
if (baseKey.includes(key)) {
|