Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-boss
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-boss
Commits
1e44d659
Commit
1e44d659
authored
Oct 31, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改测试环境配置
parent
5849cd5f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
fetch.js
miniprogram/api/fetch.js
+6
-6
fetch.ts
miniprogram/api/fetch.ts
+5
-5
No files found.
miniprogram/api/fetch.js
View file @
1e44d659
...
...
@@ -52,16 +52,16 @@ var fetch = function (req) {
});
};
exports
.
systemFetch
=
function
(
req
)
{
return
fetch
(
__assign
({},
req
,
{
url
:
constants_1
.
dev
Url
.
SYSTEM_SERVER_URL
+
req
.
url
}));
return
fetch
(
__assign
({},
req
,
{
url
:
constants_1
.
test
Url
.
SYSTEM_SERVER_URL
+
req
.
url
}));
};
exports
.
statisticsFetch
=
function
(
req
)
{
return
fetch
(
__assign
({},
req
,
{
url
:
constants_1
.
dev
Url
.
STATISTICS_SERVER_URL
+
req
.
url
}));
return
fetch
(
__assign
({},
req
,
{
url
:
constants_1
.
test
Url
.
STATISTICS_SERVER_URL
+
req
.
url
}));
};
exports
.
customerFetch
=
function
(
req
)
{
return
fetch
(
__assign
({},
req
,
{
url
:
constants_1
.
dev
Url
.
CUSTOMER_SERVER_URL
+
req
.
url
}));
return
fetch
(
__assign
({},
req
,
{
url
:
constants_1
.
test
Url
.
CUSTOMER_SERVER_URL
+
req
.
url
}));
};
exports
.
baseFetch
=
function
(
req
)
{
return
fetch
(
__assign
({},
req
,
{
url
:
constants_1
.
dev
Url
.
BASE_SERVER_URL
+
req
.
url
}));
return
fetch
(
__assign
({},
req
,
{
url
:
constants_1
.
test
Url
.
BASE_SERVER_URL
+
req
.
url
}));
};
exports
.
default
=
fetch
;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmV0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmZXRjaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsaURBQXFFO0FBRXJFLElBQU0sR0FBRyxHQUFHLE1BQU0sRUFBVSxDQUFDO0FBRTdCLElBQU0sS0FBSyxHQUFHLFVBQUMsR0FBcUI7SUFDbEMsT0FBQSxJQUFJLE9BQU8sQ0FBQyxVQUFDLE9BQU8sRUFBRSxNQUFNO1FBQzFCLElBQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDO1FBQ25DLEVBQUUsQ0FBQyxPQUFPLGNBQ0wsR0FBRyxJQUNOLE1BQU0sRUFBRSxLQUFLO2dCQUNYLENBQUMsWUFDRyxLQUFLLE9BQUEsSUFDRixHQUFHLENBQUMsTUFBTSxFQUVqQixDQUFDLENBQUMsR0FBRyxDQUFDLE1BQU0sRUFFZCxPQUFPLEVBQUUsT0FBTyxFQUNoQixJQUFJLEVBQUUsTUFBTSxJQUNaLENBQUM7SUFDTCxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsVUFBQyxHQUFvQztRQUMzQyxJQUFNLGFBQWlDLEVBQS9CLGNBQUksRUFBRSxnQ0FBeUIsQ0FBQztRQUN4QyxFQUFFLENBQUMsQ0FBQyxJQUFJLEtBQUssdUJBQVcsQ0FBQyxDQUFDLENBQUM7WUFDekIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0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gaGVhZGVyOiB0b2tlblxuICAgICAgICA/IHtcbiAgICAgICAgICAgIHRva2VuLFxuICAgICAgICAgICAgLi4ucmVxLmhlYWRlcixcbiAgICAgICAgICB9XG4gICAgICAgIDogcmVxLmhlYWRlcixcblxuICAgICAgc3VjY2VzczogcmVzb2x2ZSxcbiAgICAgIGZhaWw6IHJlamVjdCxcbiAgICB9KTtcbiAgfSkudGhlbigocmVzOiB3eC5SZXF1ZXN0U3VjY2Vzc0NhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgY29uc3QgeyBjb2RlLCAuLi5vdGhlcmtleXMgfSA9IHJlcy5kYXRhO1xuICAgIGlmIChjb2RlID09PSBzdWNjZXNzQ29kZSkge1xuICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgIGlmIChyZXMuaGVhZGVyWydTZXQtQ29va2llJ10pXG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgaGVhZGVyOiByZXMuaGVhZGVyLFxuICAgICAgICAgIGRhdGE6IG90aGVya2V5cyxcbiAgICAgICAgfTtcbiAgICAgIHJldHVybiBvdGhlcmtleXM7XG4gICAgfSBlbHNlIGlmIChjb2RlID09PSBsb2dvdXRvZGUpIHtcbiAgICAgIGFwcC5yZXNldFVzZXJpbmZvKCk7XG4gICAgICB3eC5yZUxhdW5jaCh7XG4gICAgICAgIHVybDogJy9wYWdlcy9pbmRleC9pbmRleCcsXG4gICAgICB9KTtcbiAgICAgIHRocm93IHtcbiAgICAgICAgZXJyTXNnOiByZXMuZGF0YS5tc2cgfHwgJ+e9kee7nOW8guW4uCcsXG4gICAgICB9O1xuICAgIH0gZWxzZSB7XG4gICAgICB0aHJvdyB7XG4gICAgICAgIGVyck1zZzogcmVzLmRhdGEubXNnIHx8ICfnvZHnu5zlvILluLgnLFxuICAgICAgfTtcbiAgICB9XG4gIH0pO1xuXG5leHBvcnQgY29uc3Qgc3lzdGVtRmV0Y2ggPSAocmVxOiB3eC5SZXF1ZXN0T3B0aW9uKSA9PlxuICBmZXRjaCh7IC4uLnJlcSwgdXJsOiB0ZXN0VXJsLlNZU1RFTV9TRVJWRVJfVVJMICsgcmVxLnVybCB9KTtcbmV4cG9ydCBjb25zdCBzdGF0aXN0aWNzRmV0Y2ggPSAocmVxOiB3eC5SZXF1ZXN0T3B0aW9uKSA9PlxuICBmZXRjaCh7IC4uLnJlcSwgdXJsOiB0ZXN0VXJsLlNUQVRJU1RJQ1NfU0VSVkVSX1VSTCArIHJlcS51cmwgfSk7XG5leHBvcnQgY29uc3QgY3VzdG9tZXJGZXRjaCA9IChyZXE6IHd4LlJlcXVlc3RPcHRpb24pID0+XG4gIGZldGNoKHsgLi4ucmVxLCB1cmw6IHRlc3RVcmwuQ1VTVE9NRVJfU0VSVkVSX1VSTCArIHJlcS51cmwgfSk7XG5leHBvcnQgY29uc3QgYmFzZUZldGNoID0gKHJlcTogd3guUmVxdWVzdE9wdGlvbikgPT5cbiAgZmV0Y2goeyAuLi5yZXEsIHVybDogdGVzdFVybC5CQVNFX1NFUlZFUl9VUkwgKyByZXEudXJsIH0pO1xuZXhwb3J0IGRlZmF1bHQgZmV0Y2g7XG4iXX0=
\ No newline at end of file
miniprogram/api/fetch.ts
View file @
1e44d659
import
{
devUrl
,
successCode
,
logoutode
}
from
'../config/constants'
;
import
{
successCode
,
logoutode
,
testUrl
}
from
'../config/constants'
;
import
{
IMyApp
}
from
'../app'
;
const
app
=
getApp
<
IMyApp
>
();
...
...
@@ -43,11 +43,11 @@ const fetch = (req: wx.RequestOption) =>
});
export
const
systemFetch
=
(
req
:
wx
.
RequestOption
)
=>
fetch
({
...
req
,
url
:
dev
Url
.
SYSTEM_SERVER_URL
+
req
.
url
});
fetch
({
...
req
,
url
:
test
Url
.
SYSTEM_SERVER_URL
+
req
.
url
});
export
const
statisticsFetch
=
(
req
:
wx
.
RequestOption
)
=>
fetch
({
...
req
,
url
:
dev
Url
.
STATISTICS_SERVER_URL
+
req
.
url
});
fetch
({
...
req
,
url
:
test
Url
.
STATISTICS_SERVER_URL
+
req
.
url
});
export
const
customerFetch
=
(
req
:
wx
.
RequestOption
)
=>
fetch
({
...
req
,
url
:
dev
Url
.
CUSTOMER_SERVER_URL
+
req
.
url
});
fetch
({
...
req
,
url
:
test
Url
.
CUSTOMER_SERVER_URL
+
req
.
url
});
export
const
baseFetch
=
(
req
:
wx
.
RequestOption
)
=>
fetch
({
...
req
,
url
:
dev
Url
.
BASE_SERVER_URL
+
req
.
url
});
fetch
({
...
req
,
url
:
test
Url
.
BASE_SERVER_URL
+
req
.
url
});
export
default
fetch
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment