|
@@ -1,7 +1,8 @@
|
|
-
|
|
|
|
// let api = "https://passport.lrlz.com/mobile/index.php";
|
|
// let api = "https://passport.lrlz.com/mobile/index.php";
|
|
-let api = "http://192.168.1.200/mobile/index.php";
|
|
|
|
-function getReq(data, callback, method) {
|
|
|
|
|
|
+let api = "http://121.89.223.81/mobile/index.php";
|
|
|
|
+
|
|
|
|
+function getReq(data, callback, method)
|
|
|
|
+{
|
|
let options = {
|
|
let options = {
|
|
client_type: 'mini'
|
|
client_type: 'mini'
|
|
}
|
|
}
|
|
@@ -21,7 +22,7 @@ function getReq(data, callback, method) {
|
|
|
|
|
|
if (method == 'POST') {
|
|
if (method == 'POST') {
|
|
header = {
|
|
header = {
|
|
- 'content-type': 'application/x-www-form-urlencoded', // 数据转换成 query string
|
|
|
|
|
|
+ 'content-type': 'application/x-www-form-urlencoded', //数据转换成 query string
|
|
'Cookie': 'MPHPSESSID=' + session_id
|
|
'Cookie': 'MPHPSESSID=' + session_id
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -42,7 +43,6 @@ function getReq(data, callback, method) {
|
|
wx.reLaunch({
|
|
wx.reLaunch({
|
|
url: "/pages/index/index"
|
|
url: "/pages/index/index"
|
|
})
|
|
})
|
|
-
|
|
|
|
} else if (res.cancel) {
|
|
} else if (res.cancel) {
|
|
console.log('用户点击取消')
|
|
console.log('用户点击取消')
|
|
}
|
|
}
|