| @@ -52,7 +52,10 @@ function Copyinfo() { | |||||
| //Dedebiz info | //Dedebiz info | ||||
| var dedebizInfo; | var dedebizInfo; | ||||
| function ViewDedeBIZ() { | function ViewDedeBIZ() { | ||||
| console.log(dedebizInfo); | |||||
| if (dedebizInfo === false) { | |||||
| ShowMsg("商业组件没有启动,无法正常连接"); | |||||
| return; | |||||
| } | |||||
| ShowMsg(` | ShowMsg(` | ||||
| <table class="table table-borderless w-100"> | <table class="table table-borderless w-100"> | ||||
| <tr> | <tr> | ||||
| @@ -74,8 +77,10 @@ function LoadServer() { | |||||
| $.get("index_body.php?dopost=system_info", function (data) { | $.get("index_body.php?dopost=system_info", function (data) { | ||||
| let rsp = JSON.parse(data); | let rsp = JSON.parse(data); | ||||
| if (rsp.code === 200) { | if (rsp.code === 200) { | ||||
| if (rsp.result.core.code === 200) { | |||||
| if (rsp.result.core) { | |||||
| dedebizInfo = JSON.parse(rsp.result.core.data); | dedebizInfo = JSON.parse(rsp.result.core.data); | ||||
| } else { | |||||
| dedebizInfo = false; | |||||
| } | } | ||||
| let infoStr = `<table class="table table-borderless w-100">`; | let infoStr = `<table class="table table-borderless w-100">`; | ||||
| @@ -556,7 +556,7 @@ function ShowMsg(content, ...args) { | |||||
| size = ""; | size = ""; | ||||
| if (typeof content == "undefined") content = ""; | if (typeof content == "undefined") content = ""; | ||||
| modalID = guid(); | modalID = guid(); | ||||
| var footer = `<button type="button" class="btn btn-primary" onClick="CloseModal(\'GKModal${modalID}\')">ok</button>`; | |||||
| var footer = `<button type="button" class="btn btn-primary" onClick="CloseModal(\'GKModal${modalID}\')">确定</button>`; | |||||
| var noClose = false; | var noClose = false; | ||||
| if (args.length == 1) { | if (args.length == 1) { | ||||
| //存在args参数 | //存在args参数 | ||||
| @@ -11,7 +11,7 @@ error_reporting(E_ALL || ~E_NOTICE); | |||||
| define('INSLOCKFILE', dirname(__FILE__).'/install_lock.txt'); | define('INSLOCKFILE', dirname(__FILE__).'/install_lock.txt'); | ||||
| $verMsg = 'V6'; | $verMsg = 'V6'; | ||||
| $dfDbname = 'DedeBIZ'; | $dfDbname = 'DedeBIZ'; | ||||
| $cfg_version_detail = '6.2.1'; //详细版本号 | |||||
| $cfg_version_detail = '6.2.3'; //详细版本号 | |||||
| $errmsg = ''; | $errmsg = ''; | ||||
| if (version_compare(PHP_VERSION, '8.0.0', '>=') && function_exists("mysqli_report")) { | if (version_compare(PHP_VERSION, '8.0.0', '>=') && function_exists("mysqli_report")) { | ||||
| mysqli_report(MYSQLI_REPORT_OFF); | mysqli_report(MYSQLI_REPORT_OFF); | ||||
| @@ -187,7 +187,7 @@ $cfg_soft_dir = $cfg_medias_dir.'/soft'; | |||||
| $cfg_other_medias = $cfg_medias_dir.'/media'; | $cfg_other_medias = $cfg_medias_dir.'/media'; | ||||
| //软件摘要信息,请不要删除,否则系统无法正确接收系统漏洞或升级信息 | //软件摘要信息,请不要删除,否则系统无法正确接收系统漏洞或升级信息 | ||||
| $cfg_version = 'V6'; | $cfg_version = 'V6'; | ||||
| $cfg_version_detail = '6.2.1'; //详细版本号 | |||||
| $cfg_version_detail = '6.2.3'; //详细版本号 | |||||
| $cfg_soft_lang = 'utf-8'; | $cfg_soft_lang = 'utf-8'; | ||||
| $cfg_soft_public = 'base'; | $cfg_soft_public = 'base'; | ||||
| $cfg_softname = '得德系统'; | $cfg_softname = '得德系统'; | ||||
| @@ -398,6 +398,9 @@ class DedeSqlite | |||||
| //获取字段详细信息 | //获取字段详细信息 | ||||
| function GetFieldObject($id = "me") | function GetFieldObject($id = "me") | ||||
| { | { | ||||
| if(!$this->result[$id]) { | |||||
| return false; | |||||
| } | |||||
| $cols = $this->result[$id]->numColumns(); | $cols = $this->result[$id]->numColumns(); | ||||
| if ($this->_fieldIdx >= $cols) { | if ($this->_fieldIdx >= $cols) { | ||||
| $this->_fieldIdx = 1; | $this->_fieldIdx = 1; | ||||