From b0c7a660750a8b29e7f8b3a648296d56c50fd2ca Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 29 十一月 2022 18:43:10 +0800 Subject: [PATCH] Merge branch 'develop' --- src/templates/zshare/verifycard/customform/index.jsx | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/templates/zshare/verifycard/customform/index.jsx b/src/templates/zshare/verifycard/customform/index.jsx index be0e47b..32a9516 100644 --- a/src/templates/zshare/verifycard/customform/index.jsx +++ b/src/templates/zshare/verifycard/customform/index.jsx @@ -106,8 +106,18 @@ let param = { func: 's_debug_sql', exec_type: 'y', - LText: this.props.initsql + values.sql } + + param.LText = `${this.props.initsql} + /* 鑷畾涔夐獙璇� */ + select @tbid='', @ErrorCode='',@retmsg='' + select top 1 @tbid='X' from (${values.sql}) a + If @tbid = '' + Begin + select @ErrorCode='${values.errorCode}',@retmsg='${values.errmsg}' + goto aaa + end + aaa: select @ErrorCode as ErrorCode,@retmsg as retmsg` if (window.GLOB.funcs && window.GLOB.funcs.length > 0) { window.GLOB.funcs.forEach(item => { @@ -126,8 +136,10 @@ param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') param.LText = param.LText.replace(/@(BID|ID|LoginUID|SessionUid|UserID|Appkey|time_id)@/ig, `'${param.timestamp}'`) + + console.info(`/* sql 楠岃瘉 */\n${param.LText.replace(/\n\s{10}/ig, '\n')}`) + param.LText = param.LText.replace(/\n/g, ' ') - param.LText = Utils.formatOptions(param.LText) param.secretkey = Utils.encrypt('', param.timestamp) -- Gitblit v1.8.0