feat: 整合请求地址
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user