提交 a74bc712 authored 作者: 钟是志's avatar 钟是志

28201 移植2.0的提前入库功能到1.0,后端接口已经构建到测试环境

上级 30669f17
import request from '@/webPublic/zyd_public/request/request';
import config from '@/config/config';
window.differenceBetweenServerAndClientTime = 0;
export const getTime = () => {
if (window.specialImportantSystemConfig && window.specialImportantSystemConfig.mockServer) {
const config = window.specialImportantSystemConfig || {};
if (config.mockServer) {
return request(
`${window.specialImportantSystemConfig.mockServer}/${window.specialImportantSystemConfig.gateWayUrl.zydxg}/InstructorConfigApi/getCurrentDate`,
`${config.mockServer}/${config.gateWayUrl.zydxg}/InstructorConfigApi/getCurrentDate`,
{
method: 'POST',
body: {},
......@@ -27,9 +27,10 @@ export const getTime = () => {
export async function queryCurrent() {
let t = await getTime();
if (window.specialImportantSystemConfig && window.specialImportantSystemConfig.mockServer) {
const config = window.specialImportantSystemConfig || {};
if (config.mockServer) {
return request(
`${window.specialImportantSystemConfig.mockServer}/${window.specialImportantSystemConfig.gateWayUrl.zydxg}/UserApi/queryCurrent`,
`${config.mockServer}/${config.gateWayUrl.zydxg}/UserApi/queryCurrent`,
{
method: 'POST',
body: {},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论