@ -3,13 +3,15 @@
export default {
onLaunch: function() {
console.log('App Launch')
console.info('App Launch,检测服务端'+config.server+'配置')
let url=config.server+'/api/test.php'
console.info('服务端测试接口:'+url)
uni.showLoading({
title:"检测服务端中"
})
let test=false
uni.request({
url:config.server+'/api/test.php',
url:url,
success:function (res) {
console.info(res)
if(res.data==="ok"){
@ -1,7 +1,7 @@
export var config={
//服务器地址
server:"http://127.0.0.1",
server:"http://192.168.43.136",
// 接口
interface:{
//图片解析