feat: 整合请求地址

This commit is contained in:
RISE
2026-05-21 15:07:46 +08:00
parent fa321e5083
commit c1337cbd80
3 changed files with 31 additions and 3 deletions

View File

@@ -20,6 +20,8 @@
</template>
<script>
import CONFIG from '../../utils/config.js';
export default {
data() {
return {
@@ -81,7 +83,7 @@
const self = this
const token = wx.getStorageSync('token');
wx.connectSocket({
url: 'wss://ai-api.aitools666.com/chat',
url: CONFIG.getWsUrl(CONFIG.api.chat),
header: {
'authorization': token
}
@@ -135,7 +137,7 @@
}
this.shareBtnLoading = true
wx.downloadFile({
url: 'https://ai-api.aitools666.com/generate-post?record_id=' + this.recordId,
url: CONFIG.getHttpUrl(CONFIG.api.generatePost) + '?record_id=' + this.recordId,
success: (res) => {
this.shareBtnLoading = false
wx.showShareImageMenu({