修改接口地址

main
15004070936 1 month ago
parent d83d27fb60
commit 2111483df7

@ -13,12 +13,14 @@ uni.$http = $http;
// 请求的根路径 // 请求的根路径
// #ifdef H5 // #ifdef H5
$http.baseUrl = 'https://www.sanduolantoyoga.com/yoga' // $http.baseUrl = 'https://www.sanduolantoyoga.com/yoga'
$http.baseUrl = 'https://yoga.runpengsoft.com/yoga'
// $http.baseUrl = 'http://192.168.13.9:8083' // $http.baseUrl = 'http://192.168.13.9:8083'
// #endif // #endif
//#ifdef APP-PLUS //#ifdef APP-PLUS
$http.baseUrl = 'https://www.sanduolantoyoga.com/yoga' // $http.baseUrl = 'https://www.sanduolantoyoga.com/yoga'
$http.baseUrl = 'https://yoga.runpengsoft.com/yoga'
// $http.baseUrl = 'http://192.168.13.9:8083' // $http.baseUrl = 'http://192.168.13.9:8083'
//#endif //#endif
@ -26,12 +28,14 @@ $http.baseUrl = 'https://www.sanduolantoyoga.com/yoga'
// WebSocket 地址(可根据平台条件编译) // WebSocket 地址(可根据平台条件编译)
// #ifdef H5 // #ifdef H5
// Vue.prototype.$wsUrl = 'ws://192.168.13.9:8528/im' // 开发环境 // Vue.prototype.$wsUrl = 'ws://192.168.13.9:8528/im' // 开发环境
Vue.prototype.$wsUrl = 'wss://www.sanduolantoyoga.com/yoga-imserver' // 生产环境 // Vue.prototype.$wsUrl = 'wss://www.sanduolantoyoga.com/yoga-imserver' // 生产环境
Vue.prototype.$wsUrl = 'wss://www.sanduolantoyoga.com/yoga-imserver/' // 生产环境
// #endif // #endif
// #ifdef APP-PLUS // #ifdef APP-PLUS
// Vue.prototype.$wsUrl = 'ws://192.168.13.9:8528/im' // 开发环境 // Vue.prototype.$wsUrl = 'ws://192.168.13.9:8528/im' // 开发环境
Vue.prototype.$wsUrl = 'wss://www.sanduolantoyoga.com/yoga-imserver' // 生产环境 // Vue.prototype.$wsUrl = 'wss://www.sanduolantoyoga.com/yoga-imserver' // 生产环境
Vue.prototype.$wsUrl = 'wss://yoga.runpengsoft.com/yoga-imserver/' // 生产环境
// #endif // #endif
// 请求开始之前做一些事情 // 请求开始之前做一些事情

@ -516,7 +516,7 @@ const chatModule = {
if (msgInfo.id && msgInfo.id > 0) { if (msgInfo.id && msgInfo.id > 0) {
for (let i = 0; i < chat.messages.length; i++) { for (let i = 0; i < chat.messages.length; i++) {
const m = chat.messages[i]; const m = chat.messages[i];
if (m.id && msgInfo.id < m.id) { if (m.id && Number(msgInfo.id) < Number(m.id)) {
insertPos = i; insertPos = i;
console.log(`消息乱序修正: ${chat.messages.length} -> ${insertPos}`); console.log(`消息乱序修正: ${chat.messages.length} -> ${insertPos}`);
break; break;
@ -530,6 +530,7 @@ const chatModule = {
// 标记已存储为 false已在 mutation 中完成) // 标记已存储为 false已在 mutation 中完成)
// 保存到本地 // 保存到本地
dispatch('saveToStorage', { withColdMessage: false }); dispatch('saveToStorage', { withColdMessage: false });
}, },
// ========== 更新消息 ========== // ========== 更新消息 ==========

Loading…
Cancel
Save