Merge branch 'copy'
This commit is contained in:
7
App.vue
7
App.vue
@@ -43,23 +43,20 @@ onHide(() => {
|
|||||||
|
|
||||||
function getUserInfo() {
|
function getUserInfo() {
|
||||||
lightAppJssdk.user.getUserInfoWithEncryptedParamByAppId({
|
lightAppJssdk.user.getUserInfoWithEncryptedParamByAppId({
|
||||||
appId: 'qdsrgznrgpp', // 接入方在成功创建应用后自动生成
|
appId: config.appInfo.loveShandong, // 接入方在成功创建应用后自动生成
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data == '未登录') onLoginApp();
|
if (data == '未登录') onLoginApp();
|
||||||
else {
|
else {
|
||||||
if (typeof data == 'string') data = JSON.parse(data);
|
if (typeof data == 'string') data = JSON.parse(data);
|
||||||
|
const sm2_privateKey = config.appInfo.sm2PrivateKey;
|
||||||
const sm2_privateKey = '7e14966df4ecd4241ed082ef716d82b52113cb5899ebdc704a98844d0a32b0dc';
|
|
||||||
let sm2_encrypt_result = data.data;
|
let sm2_encrypt_result = data.data;
|
||||||
let sm2_decrypt_result = sm2_Decrypt(sm2_encrypt_result, sm2_privateKey);
|
let sm2_decrypt_result = sm2_Decrypt(sm2_encrypt_result, sm2_privateKey);
|
||||||
|
|
||||||
if (typeof sm2_decrypt_result == 'string') sm2_decrypt_result = JSON.parse(sm2_decrypt_result);
|
if (typeof sm2_decrypt_result == 'string') sm2_decrypt_result = JSON.parse(sm2_decrypt_result);
|
||||||
|
|
||||||
// 其次,对sm2解密后的结果进行 aes解密
|
// 其次,对sm2解密后的结果进行 aes解密
|
||||||
// aes解密需要用到 appword , 为固定值,使用示例代码中的即可
|
// aes解密需要用到 appword , 为固定值,使用示例代码中的即可
|
||||||
let aes_encrypt_result = sm2_decrypt_result.data;
|
let aes_encrypt_result = sm2_decrypt_result.data;
|
||||||
let aes_decrypt_result = aes_Decrypt(aes_encrypt_result, appword);
|
let aes_decrypt_result = aes_Decrypt(aes_encrypt_result, appword);
|
||||||
|
|
||||||
// 加密
|
// 加密
|
||||||
loginCallback(aes_decrypt_result);
|
loginCallback(aes_decrypt_result);
|
||||||
}
|
}
|
||||||
|
|||||||
11
config.js
11
config.js
@@ -1,8 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
// baseUrl: 'https://fw.rc.qingdao.gov.cn/rgpp-api/api', // 内网
|
baseUrl: 'https://fw.rc.qingdao.gov.cn/rgpp-api/api', // 内网
|
||||||
baseUrl: 'https://qd.zhaopinzao8dian.com/api', // 测试
|
// baseUrl: 'https://qd.zhaopinzao8dian.com/api', // 测试
|
||||||
// baseUrl: "http://192.168.98.110:18181",
|
// baseUrl: 'http://192.168.3.29:8081',
|
||||||
// baseUrl: "http://192.168.3.19:8080",
|
|
||||||
// sseAI+
|
// sseAI+
|
||||||
// StreamBaseURl: 'http://39.98.44.136:8000',
|
// StreamBaseURl: 'http://39.98.44.136:8000',
|
||||||
StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai',
|
StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai',
|
||||||
@@ -22,6 +21,10 @@ export default {
|
|||||||
appInfo: {
|
appInfo: {
|
||||||
// 应用名称
|
// 应用名称
|
||||||
name: "青岛市就业服务",
|
name: "青岛市就业服务",
|
||||||
|
// 爱山东应用标识
|
||||||
|
loveShandong: 'szjxrgznqzzp',
|
||||||
|
// 爱山东应用Key
|
||||||
|
sm2PrivateKey: '0d152c849f10e4469f2af8cedea62004e4f1db7be23c2f7270c1441d8050799d',
|
||||||
// 地区名
|
// 地区名
|
||||||
areaName: '青岛市',
|
areaName: '青岛市',
|
||||||
// AI名称
|
// AI名称
|
||||||
|
|||||||
Reference in New Issue
Block a user