|
@@ -1,9 +1,9 @@
|
|
|
const baseUrl = 'https://o3tapi.radio1964.com/web' // 测试
|
|
|
// const baseUrl = 'https://client.ohplay.radio1964.net/web' //生产
|
|
|
-// const baseUrl = 'http://192.168.0.217/web' // 付新保本地'
|
|
|
+// const baseUrl = 'http://192.168.0.217:8011/web' // 付新保本地'
|
|
|
|
|
|
function request(e) {
|
|
|
- if(!e.data){
|
|
|
+ if (!e.data) {
|
|
|
e.data = {}
|
|
|
}
|
|
|
|
|
@@ -14,6 +14,7 @@ function request(e) {
|
|
|
const promise = new Promise((resolve, reject) => {
|
|
|
uni.request({
|
|
|
url: baseUrl + e.url,
|
|
|
+ header: e.header,
|
|
|
method: e.method,
|
|
|
data: e.data,
|
|
|
success: (res) => {
|