Commit 12656857 authored by wildfirecode13's avatar wildfirecode13

11

parent 0b7489ed
......@@ -9,6 +9,6 @@ module.exports ={
"IMAGE_Q1": 0.6,
"IMAGE_Q2": 0.8,
"RES_PATH": "/src/assets/",
"RES_PATH_PROD": "//yun.duiba.com.cn/spark/v2/temp_base/1634103184110",
"JS_PATH_PROD": "https://yun.duiba.com.cn/spark/v2/temp_base/1634103186457/js"
"RES_PATH_PROD": "//yun.duiba.com.cn/spark/v2/temp_base/1634284066983",
"JS_PATH_PROD": "https://yun.duiba.com.cn/spark/v2/temp_base/1634284069518/js"
}
\ No newline at end of file
......@@ -16,12 +16,11 @@ class App extends Component {
async componentDidMount() {
const url = 'https://activity.m.duibatest.com.cn/projectx/p19dcfe16/index.html?appId=1';
const callBackUrl = url + '&iscallback=1';
const redirectUrl = url + '&isredirect=1';
// const url = 'https://activity-pre.m.duiba.com.cn/projectx/pb4398bdc/index.html?appKey=jlg88lyxz7siqtmr&openBs=openbs&appID=1';
// const callBackUrl = url + '&iscallback=1';
// const redirectUrl = url + '&isredirect=1';
const callBackUrl = url + '&iscallback=1';
const redirectUrl = url + '&isredirect=1';
let activityId = CFG.projectId;
let { iscallback, cmbdata, isredirect } = queryParams;
......@@ -57,14 +56,14 @@ class App extends Component {
//没有获取到code
//请求授权协议,需要如果是同一活动需求区分是起始页还是授权回调页,注意开头要https
//请求授权协议
// const result = await API.generateApproval({
// activityId: activityId,
// callBackUrl: ( callBackUrl)
// });
// 请求授权协议
// const result = await ajaxImg(
// '/chw/cmbautologin/generateApproval',
// JSON.stringify({ activityId: activityId, callBackUrl: ( callBackUrl) })
// );
// const protocol = result.data;
const protocol = 'cmblife://approval?aid=6b9a76cce8b54060a3a31867c4c9281d&callback=https%3A%2F%2Factivity.m.duibatest.com.cn%2Fprojectx%2Fp19dcfe16%2Findex.html%3Fiscallback%3D1&clientType=h5&date=20211013133251&keyAlias=CO_PUB_KEY_SM2&mid=1611e17549f83f6d83c77822d0bf7bef&random=9d99cdf73de84c2b8c6ae6bdc6046066&responseType=code&scope=defaultScope&sign=MEUCIASNedTKD7dkamRFy%2BMGglLdT5FOyNKi7tiJgksO0WnjAiEA2%2FrSXHnhd2reegyT%2BRidVlm7uyQCewSHqfCUt3P6vso%3D&state=state';
const protocol = 'cmblife://approval?aid=6b9a76cce8b54060a3a31867c4c9281d&callback=https%3A%2F%2Factivity.m.duibatest.com.cn%2Fprojectx%2Fp19dcfe16%2Findex.html%3FappId%3D1%26iscallback%3D1&clientType=h5&date=20211015154714&keyAlias=CO_PUB_KEY_SM2&mid=1611e17549f83f6d83c77822d0bf7bef&random=26a11e2036574a179e55ce58d9396658&responseType=code&scope=defaultScope&sign=MEYCIQD1JQTlDYR3oYVSPJ2h2xaGotCzHnwEzxGS3x6hTCyRSwIhAMxF1HYar8ip0l%2B6ph6muvqHmB%2FHlOmHsSrvWgsyde%2FD&state=state';
setTimeout(() => {
console.error('protocol', protocol)
}, 1000);
......
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