From beb279589c09ac87fbe9719c7521aa49b52009d1 Mon Sep 17 00:00:00 2001
From: Penny <2500338766@qq.com>
Date: Wed, 17 May 2023 02:15:01 +0800
Subject: [PATCH] =?UTF-8?q?hotfix:=E6=9A=82=E6=97=B6=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E7=94=BB=E6=84=8F=E5=80=BC=E6=B6=88=E8=80=97=E5=86=85=E5=AE=B9?=
=?UTF-8?q?=E3=80=81=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83?=
=?UTF-8?q?=E5=9F=9F=E5=90=8D=E5=9C=B0=E5=9D=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
main.js | 4 ++--
pages/ai/paint/loverPaint.vue | 7 ++++++-
pages/ai/paint/paint.vue | 10 ++++++----
pages/ai/paint/paintDetail.vue | 2 +-
4 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/main.js b/main.js
index fe6ed50..33f3cd6 100644
--- a/main.js
+++ b/main.js
@@ -6,8 +6,8 @@ import common from './utils/common.js'
// const baseURL = 'http://localhost:7010'
// const baseURL = 'http://81.69.47.31:7010'
// const baseURL = 'https://service.bnyer.cn' //正式
-const baseURL = 'http://47.108.66.163:7010' //测试
-// const baseURL = 'http://jbsu95.natappfree.cc' //本地
+const baseURL = 'https://test.bnyer.cn' //测试
+//const baseURL = 'http://vzym6v.natappfree.cc' //本地
Vue.prototype.baseURL = baseURL;
diff --git a/pages/ai/paint/loverPaint.vue b/pages/ai/paint/loverPaint.vue
index 45526ec..d15f223 100644
--- a/pages/ai/paint/loverPaint.vue
+++ b/pages/ai/paint/loverPaint.vue
@@ -33,7 +33,7 @@
- 生成图片
+ 生成图片(消耗{{goldNum}}点画意值)
@@ -49,6 +49,7 @@
contentDesc: '',
paintStyle:[],
curType: 0,
+ goldNum: 5, //画意值
userInfo: {},
checkData:{
checkCanPaint: false, //true已达到最大绘画上限;false未达最高上限
@@ -62,6 +63,9 @@
onShow() {
this.checkLogin();
this.checkUserCanAiPaint();
+ this.sceneDesc = '',
+ this.contentDesc = '',
+ this.curType = 0
},
methods: {
selectType(index) {
@@ -162,6 +166,7 @@
painterName: that.userInfo.username,
appType: 0,
platform: 1,
+ goldNum: that.goldNum,
}
uni.navigateTo({
url: './loverPainResult?data='+JSON.stringify(data)
diff --git a/pages/ai/paint/paint.vue b/pages/ai/paint/paint.vue
index 8787385..5a5a752 100644
--- a/pages/ai/paint/paint.vue
+++ b/pages/ai/paint/paint.vue
@@ -131,7 +131,7 @@
-
+
@@ -158,7 +158,8 @@
sfgScale: 7, //精细度
steps: 20, //采样步骤
eta: 0, //差异强度
- samplerIndex: "Euler a", //采样器
+ samplerIndex: "DPM++ SDE Karras", //采样器
+ goldNum: 2, //画意值
},
checkData:{
checkPrompt: undefined, //true填了内容;false未填内容
@@ -311,7 +312,7 @@
//判断是否可进行ai绘画 TODO 暂时关闭校验
if(that.checkData.checkCanPaint === true){
return uni.showToast({
- title: '次数已用完,关注次元意境官方账号获得更多次数!',
+ title: '画意值不足!请充值或完成相应任务获取更多次数!',
icon: 'none'
})
}
@@ -363,7 +364,8 @@
painterId: that.userInfo.id,
painterName: that.userInfo.username,
appType: 0,
- platform: 1
+ platform: 1,
+ goldNum: that.formData.goldNum
}
uni.navigateTo({
url: './paintDetail?data='+JSON.stringify(data)
diff --git a/pages/ai/paint/paintDetail.vue b/pages/ai/paint/paintDetail.vue
index cb16705..9b07d54 100644
--- a/pages/ai/paint/paintDetail.vue
+++ b/pages/ai/paint/paintDetail.vue
@@ -157,7 +157,7 @@
}
},
onShareAppMessage() {
- console.log('惦记了分享')
+ console.log('点击了分享')
// let _this = this
// let referee_id = ''
// if (_this.userInfo.user_id) {