Commit 32042ffa authored by 徐光星's avatar 徐光星

feat: 积木H5金融接口增加应用市场来源标识

parent c99e6eef
......@@ -25,12 +25,15 @@ export default {
hideLoading: true
});
},
getFinanceSetting() {
getFinanceSetting(appChannel) {
const customHeader: any = {};
if (EASY_ENV_IS_BROWSER) {
const ua = window.navigator.userAgent;
const appVersion = ua.match(/xyqb\/([\d|.]+)/) ? (ua.match(/xyqb\/([\d|.]+)/) as string[])[1] : '8.2.00';
customHeader.version = appVersion;
if (appChannel) {
customHeader.appChannel = appChannel;
}
}
// return http.post(`http://yapi.quantgroups.com/mock/351/api/kdsp/api/kdsp/vcc_switch`, {
......
......@@ -160,8 +160,8 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
return;
}
}
const [res, ] = await editorApi.getFinanceSetting();
const appChannel = localStorage.get('appChannel') || '';
const [res, ] = await editorApi.getFinanceSetting(appChannel);
const [serverTime, ] = await editorApi.getServerTime();
// console.log(res, 'finance result');
// console.log(serverTime, 'time');
......
......@@ -3,7 +3,7 @@ import { loginSa } from './sa.service';
import Cookies from './cookieStorage.service';
import localStorage from './localStorage.service';
// formXcxPage:标识是从小程序跳转过来的;
const localStorageParams = ['creditToken', 'vccToken', 'vccChannel', 'sonVccChannel', 'formXcxPage', 'tenantId', 'distinctID'];
const localStorageParams = ['creditToken', 'vccToken', 'vccChannel', 'sonVccChannel', 'formXcxPage', 'tenantId', 'distinctID', 'appChannel'];
const cookiesParams = ['h'];
export default {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment