|
@@ -1,8 +1,7 @@
|
|
|
import { getIn } from "herculex/dist/utils/manipulate";
|
|
|
-import { host, getTicketUrl, ywtRequestUrl } from "./constants";
|
|
|
+import { host, getTicketUrl, ywtRequestUrl, terminal } from "./constants";
|
|
|
import { getSilentAuthCode, getAppId, getServerTime } from "./jsapi";
|
|
|
import { joinUrl } from "./format";
|
|
|
-import { getStorage } from "./index";
|
|
|
|
|
|
function showErrorMessgage({ isShowError, error }) {
|
|
|
if (isShowError) {
|
|
@@ -41,6 +40,7 @@ export function _request({
|
|
|
data: Object.assign(data, {
|
|
|
userId: app.globalData.ywtUserIdToken || "",
|
|
|
appId: app.globalData.appId || "",
|
|
|
+ terminal,
|
|
|
}),
|
|
|
headers: {
|
|
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -118,6 +118,7 @@ export function _ywtRequest({
|
|
|
data: Object.assign(data, {
|
|
|
userId: app.globalData.ywtUserIdToken || "",
|
|
|
appId: app.globalData.appId || "",
|
|
|
+ terminal,
|
|
|
}),
|
|
|
headers: {
|
|
|
...headers,
|