Browse Source

hotfix:统一平台处理

feature-1.1-dev
Penny 3 years ago
parent
commit
5fe356ec09
  1. 2
      pages/ai/paint/loverPaint.vue
  2. 2
      pages/ai/paint/paint.vue
  3. 8
      pages/creator/imgDetail.vue
  4. 2
      pages/userInfo/aiPaint/aiPaint.vue
  5. 2
      pages/userInfo/userInfo.vue

2
pages/ai/paint/loverPaint.vue

@ -195,7 +195,7 @@
let that = this; let that = this;
const data = { const data = {
userId: that.userInfo.id, userId: that.userInfo.id,
platform: 1, platform: 1, //1
appType: 0 appType: 0
} }
const res = await checkUserCanAiPaint(data); const res = await checkUserCanAiPaint(data);

2
pages/ai/paint/paint.vue

@ -409,7 +409,7 @@
painterId: that.userInfo.id, painterId: that.userInfo.id,
painterName: that.userInfo.username, painterName: that.userInfo.username,
appType: 0, appType: 0,
platform: 1, platform: 1, //1
goldNum: that.formData.goldNum goldNum: that.formData.goldNum
} }
uni.navigateTo({ uni.navigateTo({

8
pages/creator/imgDetail.vue

@ -174,7 +174,7 @@ var videoAd = null;
const params = { const params = {
userId: this.userInfo.id, userId: this.userInfo.id,
appType: '0', appType: '0',
platform: '0' ,//0 platform: '1' ,//1
} }
const res = await getRestDownloadNum(params); const res = await getRestDownloadNum(params);
if (res && res.data.code === 200) { if (res && res.data.code === 200) {
@ -539,7 +539,7 @@ var videoAd = null;
scanCode: that.scanCode, scanCode: that.scanCode,
userId: that.userInfo.id, userId: that.userInfo.id,
appType: '0', appType: '0',
platform: '0' //0 platform: '1' //1
} }
const res = await insertOrUpdatePreAdProfit(params); const res = await insertOrUpdatePreAdProfit(params);
if (res && res.data.code === 200) { if (res && res.data.code === 200) {
@ -560,7 +560,7 @@ var videoAd = null;
creatorId: that.detailMsg.creatorId, creatorId: that.detailMsg.creatorId,
scanCode: that.scanCode, scanCode: that.scanCode,
appType: '0', appType: '0',
platform: '0' //0 platform: '1' //1
} }
const res = await insertOrUpdatePreInviteProfit(params) const res = await insertOrUpdatePreInviteProfit(params)
if (res && res.data.code === 200) { if (res && res.data.code === 200) {
@ -579,7 +579,7 @@ var videoAd = null;
const params = { const params = {
userId: this.userInfo.id, userId: this.userInfo.id,
appType: '0', appType: '0',
platform: '0' ,//0 platform: '1' ,//1
adType: adType adType: adType
} }
const res = await checkUserCanDownload(params); const res = await checkUserCanDownload(params);

2
pages/userInfo/aiPaint/aiPaint.vue

@ -76,7 +76,7 @@
that.loadStatus = 'loading'; that.loadStatus = 'loading';
const res = await getAiPaintPage({ const res = await getAiPaintPage({
painterId: that.userInfo.id, painterId: that.userInfo.id,
source: '1', source: '1', //1
pageNum: that.pageNum, pageNum: that.pageNum,
pageSize: that.pageSize pageSize: that.pageSize
}) })

2
pages/userInfo/userInfo.vue

@ -343,7 +343,7 @@ import UniIcons from "../../uni_modules/uni-icons/components/uni-icons/uni-icons
const data = { const data = {
cdk: response.content, cdk: response.content,
userId: that.userInfo.id, userId: that.userInfo.id,
source: '1', source: '1', //1
appType: '0' appType: '0'
} }
useCdk(data).then(res =>{ useCdk(data).then(res =>{

Loading…
Cancel
Save