提交 3283bf91 authored 作者: GOD_ZYX's avatar GOD_ZYX

发布,准备上线替换

上级 fa3d1bef
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script> <script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script> <script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script> <script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script>
<![endif]--><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/manifest.84238682.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/vendor.90efc743.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/app.11505cfd.js"></script></body></html> <![endif]--><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/manifest.84238682.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/vendor.90efc743.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/app.f6978a26.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,14 +6,14 @@ export default class LoginAPI extends BaseAPI { ...@@ -6,14 +6,14 @@ export default class LoginAPI extends BaseAPI {
* 调用登录接口 * 调用登录接口
* @param {[string]} obj.login_name 用户名 * @param {[string]} obj.login_name 用户名
* @param {[string]} obj.password 密码 md5加密 * @param {[string]} obj.password 密码 md5加密
* @param {[string]} obj.service 这里 一直是定值 web.ezijing.com * @param {[string]} obj.service 这里 一直是定值 h5.ezijing.com
*/ */
userLogin = (obj = {}) => this.post('/user_center/login', _.assignIn(obj, { service: 'web.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }) userLogin = (obj = {}) => this.post('/user_center/login', _.assignIn(obj, { service: 'h5.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/** /**
* 调用退出登录 * 调用退出登录
* @param {[string]} obj.service 这里 一直是定值 web.ezijing.com * @param {[string]} obj.service 这里 一直是定值 h5.ezijing.com
*/ */
outLogin = (obj = {}) => this.post('/user_center/logout', _.assignIn(obj, { service: 'web.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }) outLogin = (obj = {}) => this.post('/user_center/logout', _.assignIn(obj, { service: 'h5.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/** /**
* 当前登录用户,检测是否该系统有权限 * 当前登录用户,检测是否该系统有权限
* /user_center/get_user_info * /user_center/get_user_info
...@@ -22,45 +22,45 @@ export default class LoginAPI extends BaseAPI { ...@@ -22,45 +22,45 @@ export default class LoginAPI extends BaseAPI {
/** /**
* 发送验证码 * 发送验证码
* @param {[string]} obj.mobile 手机号 * @param {[string]} obj.mobile 手机号
* @param {[string]} obj.service 这里 一直是定值 web.ezijing.com * @param {[string]} obj.service 这里 一直是定值 h5.ezijing.com
*/ */
sendCode = (obj = {}) => this.post('/user_center/send_login_code', _.assignIn(obj, { service: 'web.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }) sendCode = (obj = {}) => this.post('/user_center/send_login_code', _.assignIn(obj, { service: 'h5.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/** /**
* 验证码登录 * 验证码登录
* @param {[string]} obj.mobile 手机号 * @param {[string]} obj.mobile 手机号
* @param {[string]} obj.code 验证码 * @param {[string]} obj.code 验证码
* @param {[string]} obj.service 这里 一直是定值 web.ezijing.com * @param {[string]} obj.service 这里 一直是定值 h5.ezijing.com
*/ */
codeLogin = (obj = {}) => this.post('/user_center/code_login', _.assignIn(obj, { service: 'web.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }) codeLogin = (obj = {}) => this.post('/user_center/code_login', _.assignIn(obj, { service: 'h5.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/** /**
* 发送重置密码验证码 * 发送重置密码验证码
* @param {[string]} obj.contact 手机号/邮箱 * @param {[string]} obj.contact 手机号/邮箱
* @param {[string]} obj.source_type 值 3 * @param {[string]} obj.source_type 值 3
* @param {[string]} obj.service 这里 一直是定值 web.ezijing.com * @param {[string]} obj.service 这里 一直是定值 h5.ezijing.com
*/ */
sendResetPwdCode = (obj = {}) => this.post('/user_center/send_reset_password_code', _.assignIn(obj, { service: 'web.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }) sendResetPwdCode = (obj = {}) => this.post('/user_center/send_reset_password_code', _.assignIn(obj, { service: 'h5.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/** /**
* 重置密码验证码确认 * 重置密码验证码确认
* @param {[string]} obj.contact 手机号/邮箱 * @param {[string]} obj.contact 手机号/邮箱
* @param {[string]} obj.code 验证码 * @param {[string]} obj.code 验证码
* @param {[string]} obj.service 这里 一直是定值 web.ezijing.com * @param {[string]} obj.service 这里 一直是定值 h5.ezijing.com
*/ */
validateCode = (obj = {}) => this.post('/user_center/validate_code', _.assignIn(obj, { service: 'web.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }) validateCode = (obj = {}) => this.post('/user_center/validate_code', _.assignIn(obj, { service: 'h5.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/** /**
* 重置密码 * 重置密码
* @param {[string]} obj.contact 手机号/邮箱 * @param {[string]} obj.contact 手机号/邮箱
* @param {[string]} obj.code 验证码 * @param {[string]} obj.code 验证码
* @param {[string]} obj.new_password 新的密码 * @param {[string]} obj.new_password 新的密码
* @param {[string]} obj.service 这里 一直是定值 web.ezijing.com * @param {[string]} obj.service 这里 一直是定值 h5.ezijing.com
*/ */
resetPwd = (obj = {}) => this.post('/user_center/reset_password', _.assignIn(obj, { service: 'web.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }) resetPwd = (obj = {}) => this.post('/user_center/reset_password', _.assignIn(obj, { service: 'h5.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/** /**
* 个人信息 - 修改密码 * 个人信息 - 修改密码
* @param {[string]} obj.old_password 验证码 * @param {[string]} obj.old_password 验证码
* @param {[string]} obj.new_password 新的密码 * @param {[string]} obj.new_password 新的密码
* @param {[string]} obj.service 这里 一直是定值 web.ezijing.com * @param {[string]} obj.service 这里 一直是定值 h5.ezijing.com
*/ */
updatePwd = (obj = {}) => this.post('/user_center/change_password', _.assignIn(obj, { service: 'web.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }) updatePwd = (obj = {}) => this.post('/user_center/change_password', _.assignIn(obj, { service: 'h5.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/** /**
* 个人信息 - 上传头像 * 个人信息 - 上传头像
*/ */
......
const state = process.env.NODE_ENV const state = process.env.NODE_ENV
let conf = {} let conf = {}
if (state === 'test') { if (state === 'test') {
conf.agentApiUrl = 'https://api2.ezijing.com/' // conf.agentApiUrl = 'https://api2.ezijing.com/'
conf.agentApiUrl = 'https://zapi.ezijing.com/'
// conf.agentApiUrl = 'http://10.1.1.5:8024/' // conf.agentApiUrl = 'http://10.1.1.5:8024/'
// conf.agentApiUrl = 'http://192.168.3.254:8081' // conf.agentApiUrl = 'http://192.168.3.254:8081'
} else if (state === 'production') { } else if (state === 'production') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论