예제 #1
0
 /** 安装 */
 @RequestMapping(value = "/install", method = RequestMethod.POST)
 public @ResponseBody Message install() {
   if (!tenpayBankPlugin.getIsInstalled()) {
     PluginConfig pluginConfig = new PluginConfig();
     pluginConfig.setPluginId(tenpayBankPlugin.getId());
     pluginConfig.setIsEnabled(false);
     pluginConfigService.save(pluginConfig);
   }
   return SUCCESS_MESSAGE;
 }