| | |
| | | private var isTest = true |
| | | |
| | | // private const val TEST_URL = "http://192.168.110.64:9000/" //内网 |
| | | private const val TEST_URL = "https://mock.apipost.net/mock/31b303c60464000/" //fake |
| | | private const val TEST_URL = "https://xq.xqzhihui.com/api/" //外网 |
| | | private const val LINE_URL = "https://jkcyl.cn/app/" //正式服 |
| | | val BASE_URL = if (isTest) TEST_URL else LINE_URL |
| | | |
| | | /**公共接口*/ |
| | | const val H5_URL = "system/public/getContent" //获取协议 |
| | | const val getCode = "auth/app/sendCaptchaCode" |
| | | const val querySystemImg = "base/appUser/getPage" |
| | | const val querySystemImg = "system/system/page/getPage" |
| | | |
| | | const val PUSH_BASE_URL = "http://113.45.158.158/share/#/" |
| | | const val RANK = PUSH_BASE_URL + "pages/ranking/ranking?userId=%s" |
| | | const val PUSH_LIST = PUSH_BASE_URL + "pages/ranking/recommend?userId=%s" |
| | | const val SHARE_APP = PUSH_BASE_URL + "pages/poster/poster?userId=%s" |
| | | const val SHARE_VOICE = PUSH_BASE_URL + "pages/healDetail/healDetail?id=%s" |
| | | const val SHARE_COURSE = PUSH_BASE_URL + "pages/courseDetail/onLine?courseId=%s" |
| | | const val SHARE_OFFLINE = PUSH_BASE_URL + "pages/courseDetail/offLine?courseId=%s" |
| | | |
| | | /** |
| | | * 登录注册 |
| | |
| | | const val userLogin = "auth/app/login" |
| | | const val captchaLogin = "auth/app/captchaLogin" |
| | | const val forgetPassword = "auth/app/changePassword" |
| | | const val wxLogin = "base/appUser/loginWeChat" |
| | | const val wxLogin = "auth/app/wxLogin" |
| | | const val bindWx = "base/appUser/setPhone" |
| | | const val verifyPhone = "auth/app/verifyPhone" |
| | | const val getTagList = "user/client/app-user/getTagList" |
| | | const val verifyCellPhone = "auth/app/verifyCellPhone" |
| | | const val saveUserAnswers = "user/client/app-user/saveUserAnswers" |
| | | const val getPlan = "system/system/page/getPlan" |
| | | |
| | | /** |
| | | * 首页 |
| | |
| | | const val getMeditationAndCateList = "meditation/client/meditation/home/getMeditationAndCateList" |
| | | const val search = "meditation/client/meditation/home/search" |
| | | const val getHotWordList = "meditation/client/meditation/home/getHotWordList" |
| | | const val getNotice = "base/appUser/getNotice" |
| | | const val constellation = "base/appUser/constellation" |
| | | const val setWeight = "base/appUser/setWeight" |
| | | const val changeConstellation = "base/appUser/changeConstellation" |
| | | const val getHomeBackgroun = "meditation/client/meditation/home/getHomeBackgroun" |
| | | const val getHomeBackgroun = "meditation/client/meditation/home/getHomeBackgroundMusicList" |
| | | const val getMeditationPageByCateId = "meditation/client/meditation/home/getMeditationPageByCateId" |
| | | const val getMeditationDetails = "meditation/client/meditation/home/getMeditationDetails" |
| | | const val favorite = "meditation/client/meditation/home/favorite" |
| | | const val getMeditationQuestionPage = "meditation/client/meditation/home/getMeditationQuestionPage" |
| | | const val doLike = "meditation/client/meditation/home/likeQuestion" |
| | | const val report = "meditation/client/meditation/home/report" |
| | | const val addQuestion = "meditation/client/meditation/home/addQuestion" |
| | | const val confirmOrderVoice = "meditation/client/meditation/meditation/confirmOrder" |
| | | const val successOrderVoice = "meditation/client/meditation/meditation/successOrder" |
| | | const val saveViewingHistory = "user/user/app-user-viewing-history/saveViewingHistory" |
| | | |
| | | |
| | | /** |
| | |
| | | const val getUserInfo = "user/client/app-user/getUserInfo" |
| | | const val getUserDetail = "user/client/app-user/getUserDetail" |
| | | const val feedBack = "base/appUser/feedBack" |
| | | const val getPhone = "base/appUser/getPhone" |
| | | const val useGuide = "base/appUser/useGuide" |
| | | const val setUnit = "base/appUser/setUnit" |
| | | const val updatePhone = "base/appUser/updatePhone" |
| | | const val updateInfo = "user/client/app-user/updateUserDetail" |
| | | const val updateUserAvatar = "user/client/app-user/updateUserAvatar" |
| | | const val wallet = "user/client/app-user/wallet" |
| | | const val cancellation = "base/appUser/deleteAppUser" |
| | | const val myCourse = "base/sports/myCourse" |
| | | const val collectedCourse = "base/appUser/collectCourse" |
| | | const val placeOrder = "order/client/order/order/placeOrder" |
| | | const val myFind = "base/appUser/myFind" |
| | | const val withdrawal = "base/appUser/Withdrawal" |
| | | const val withdrawalRecord = "base/appUser/withdrawal" |
| | | const val updateBankCard = "base/appUser/updateBankCard" |
| | | const val getBankInfo = "base/appUser/getBankInfo" |
| | | const val getBindingUserName = "base/appUser/getBindingUserName" |
| | | const val binding = "base/appUser/binding" |
| | | const val getCommissionRule = "system/system/common-question/getCommissionRule" |
| | | const val lookHistory = "user/user/app-user-viewing-history/lookHistory" |
| | | const val myCollect = "course/client/course/course/myCollect" |
| | |
| | | const val noticeDetail = "user/client/user/notice-record/noticeDetail" |
| | | const val changePhone = "user/client/app-user/changePhone" |
| | | const val deleteUser = "user/client/app-user/deleteUser" |
| | | const val studyPage = "course/client/course/course/studyPage" |
| | | const val detailVersion = "system/system/version/detailVersion" |
| | | const val bindVx = "user/client/app-user/bindVx" |
| | | |
| | | |
| | | /** |
| | | * 课程 |
| | | */ |
| | | const val getBanner = "course/client/course/course/getBannerList" |
| | | const val getList = "base/sports/getList" |
| | | const val getCourseCategoryList = "course/client/course/course/getCourseCategoryList" |
| | | const val queryCourseList = "course/client/course/course/getCoursePageList" |
| | | const val getCoursePageList = "course/client/course/tutor-special-column/getCoursePageList" |
| | | const val getPayCourseInfoById = "course/client/course/course/getPayCourseInfoById" |
| | | const val collectCourse = "course/client/course/course/collectCourse" |
| | | const val queryCourseInfo = "base/sports/courseDetail" |
| | | const val buyCourse = "base/sports/buyCourse" |
| | | const val pay = "base/sports/pay" |
| | | const val order = "base/sports/order" |
| | | const val success = "base/sports/success" |
| | | const val getProvince = "base/sports/getProvince" |
| | | const val getCity = "base/sports/getCity" |
| | | const val setAddress = "base/sports/setAddress" |
| | | const val getAddress = "base/sports/getAddress" |
| | | const val riskInfo = "base/sports/riskInfo" |
| | | const val queryPhysical = "account/api/startCource/queryPhysical" |
| | | const val startTrain = "base/sports/startTrain" |
| | | const val exit = "base/sports/exit" |
| | | const val completeInfo = "base/sports/completeInfo" |
| | | const val clockIn = "base/sports/clockIn" |
| | | const val queryCouponPackage = "base/appUser/couponList" |
| | | const val getUserByPhone = "user/client/app-user/getUserByPhone" |
| | | const val confirmOrder = "course/client/course/course/confirmOrder" |
| | | const val gvieCourse = "order/client/order/order/gvieCourse" |
| | | const val successOrder = "course/client/course/course/successOrder" |
| | | const val studyPageByChapterId = "course/client/course/course/studyPageByChapterId" |
| | | const val saveCourseStudyHistory = "user/user/app-user-viewing-history/saveCourseStudyHistory" |
| | | |
| | | |
| | | /** |
| | | * 树苗 |
| | | */ |
| | | const val isFirst = "user/client/app-user-tree/isFirst" |
| | | const val getUserTree = "user/client/app-user-tree/getUserTree" |
| | | const val watering = "user/client/app-user-tree/watering" |
| | | const val sign = "user/client/app-user-tree/sign" |
| | | const val energyDetail = "user/client/app-user-tree/energyDetail" |
| | | const val goodsList = "user/client/app-user-tree/goodsList" |
| | | const val exchange = "user/client/app-user-tree/exchange" |
| | | const val getTotalEnergyValue = "user/client/app-user/getTotalEnergyValue" |
| | | const val exchangeRecordList = "user/client/app-user-tree/exchangeRecordList" |
| | | const val restart = "user/client/app-user-tree/restart" |
| | | |
| | | /** |
| | | * 发现 |
| | | */ |
| | | const val getMeditationPage = "meditation/client/meditation/meditation/getMeditationPage" |
| | | const val getMeditationInfo = "meditation/client/meditation/meditation/getMeditationInfo" |
| | | const val messageCount = "base/find/messageCount" |
| | | const val findList = "base/find/findList" |
| | | const val exceptionDetail = "account/base/exploreWP/exceptionDetail" |
| | | const val findDetail = "base/find/findDetail" |
| | | const val findCommentList = "base/find/findCommentList" |