From 4bd455784edf6a45a02661f30a121dbe0907e041 Mon Sep 17 00:00:00 2001 From: Hai Liang Wang Date: Fri, 27 Oct 2023 12:43:35 +0800 Subject: [PATCH] https://github.com/cskefu/cskefu/issues/937 add help link for license import Signed-off-by: Hai Liang Wang --- .../main/resources/static/js/CSKeFu_Admin.v1.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/contact-center/app/src/main/resources/static/js/CSKeFu_Admin.v1.js b/contact-center/app/src/main/resources/static/js/CSKeFu_Admin.v1.js index 0aac693b..9cd24d7c 100644 --- a/contact-center/app/src/main/resources/static/js/CSKeFu_Admin.v1.js +++ b/contact-center/app/src/main/resources/static/js/CSKeFu_Admin.v1.js @@ -75,7 +75,20 @@ function processUserAddOrUpdateResult(responsecode, cb) { function handleGeneralCodeInQueryPathOrApiResp(code, cb) { switch (code) { case 'billingquotaexception.no_license_found': - layer.msg('【使用授权证书】证书不存在,联系系统超级管理员导入。', {icon: 2, time: 5000}); + layer.confirm('证书不存在,联系系统超级管理员导入。', { + title: '使用授权证书', icon: 2, btn: [ + '我是超级管理员', '查看说明' + ], + btn1: function (index, layero, that) { + // 我是超级管理员 + return false; + }, + btn2: function (index, layero, that) { + // 查看说明 + window.open("https://docs.cskefu.com/docs/licenses", "_blank"); + return false; + } + }); if (cb && (typeof (x) === 'function')) { cb() }