Example #1
0
 private function record_app()
 {
     include_once BG_PATH_MODEL . "app.class.php";
     //载入管理帐号模型
     $_mdl_app = new MODEL_APP();
     $_arr_appRow = $_mdl_app->api_add();
     if ($_arr_appRow["alert"] != "ok") {
         $this->obj_api->halt_re($_arr_appRow);
     }
     $this->appRecord = $_mdl_app->mdl_submit();
     if ($this->appRecord["alert"] != "y050101") {
         $this->obj_api->halt_re($this->appRecord);
     }
 }
Example #2
0
 private function table_app()
 {
     include_once BG_PATH_MODEL . "app.class.php";
     //载入管理帐号模型
     $_mdl_app = new MODEL_APP();
     $_arr_appTable = $_mdl_app->mdl_create_table();
     $this->tplData["db_alert"]["app_table"] = array("alert" => $_arr_appTable["alert"], "status" => substr($_arr_appTable["alert"], 0, 1));
 }
Example #3
0
 private function table_app()
 {
     include_once BG_PATH_MODEL . "app.class.php";
     //载入管理帐号模型
     $_mdl_app = new MODEL_APP();
     $_arr_col = $_mdl_app->mdl_column();
     $_arr_alert = array();
     if (in_array("app_id", $_arr_col)) {
         $_arr_alert["app_id"] = array("CHANGE", "smallint NOT NULL AUTO_INCREMENT COMMENT 'ID'", "app_id");
     }
     if (in_array("app_status", $_arr_col)) {
         $_arr_alert["app_status"] = array("CHANGE", "enum('enable','disable') NOT NULL COMMENT '状态'", "app_status");
     }
     if (in_array("app_sync", $_arr_col)) {
         $_arr_alert["app_sync"] = array("CHANGE", "enum('on','off') NOT NULL COMMENT '状态'", "app_sync");
     }
     if (in_array("app_key", $_arr_col)) {
         $_arr_alert["app_key"] = array("CHANGE", "char(64) NOT NULL COMMENT '校验码'", "app_key");
     }
     if (in_array("app_token", $_arr_col)) {
         $_arr_alert["app_token"] = array("CHANGE", "char(64) NOT NULL COMMENT '访问口令'", "app_token");
     }
     if ($_arr_alert) {
         $_reselt = $this->obj_db->alert_table(BG_DB_TABLE . "app", $_arr_alert);
         if (!$_reselt) {
             $this->obj_ajax->halt_alert("x050106");
         }
     }
 }
Example #4
0
 private function table_app()
 {
     include_once BG_PATH_MODEL . "app.class.php";
     //载入管理帐号模型
     $_mdl_app = new MODEL_APP();
     $_arr_appRow = $_mdl_app->mdl_create_table();
     if ($_arr_appRow["alert"] != "y050105") {
         $this->obj_ajax->halt_alert($_arr_appRow["alert"]);
     }
 }