Example #1
0
     json_out(0, "The module you have selected is only for project.");
 }
 /**
  * 模块是否存在
  */
 if (!(new pmxModule())->isExistID($mid)) {
     json_out(0, "The module id is non-existent.");
 }
 $mconfig_sys = (new pmxModule())->getConfig($mid);
 // 模块的参数
 /**
  * 校验用户提交的模块参数是否完整
  */
 if (validate_addcommand_mod_config($mconfig, $mconfig_sys)) {
     $pmxHostLog = new pmxHostLog();
     $hostLogSaltID = $pmxHostLog->newSaltID();
     /**
      * 命令的名字
      */
     $modDetail = (new pmxModule())->getDetail($mid);
     $cname = "( " . $modDetail["name"] . " )";
     if (count($mconfig) > 0) {
         $cname = "( " . $modDetail["name"] . " )  " . addcommand_cname_config($mconfig);
     }
     /**
      * 校正参数数据信息
      */
     $mconfig = correct_addcommand_mod_config($sid, $mconfig, $hostLogSaltID);
     // var_dump($mconfig);
     /**
      * 获取整合参数后的代码