From 99ffc7407b76ccc71c10a3bf216d651dffbea161 Mon Sep 17 00:00:00 2001 From: liugang Date: Fri, 27 Oct 2017 17:40:16 +0800 Subject: [PATCH] * Add document link for entry. --- module/entry/config.php | 2 ++ module/entry/lang/zh-cn.php | 2 +- module/entry/view/create.html.php | 4 ++-- module/entry/view/edit.html.php | 4 ++-- module/webhook/lang/zh-cn.php | 1 + 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/module/entry/config.php b/module/entry/config.php index 98d4085a67..051b241f36 100644 --- a/module/entry/config.php +++ b/module/entry/config.php @@ -4,3 +4,5 @@ $config->entry->create->requiredFields = 'name, code, key'; $config->entry->edit = new stdclass(); $config->entry->edit->requiredFields = 'name, code, key'; + +$config->entry->help = 'http://www.zentao.net/book/zentaopmshelp/integration-287.html'; diff --git a/module/entry/lang/zh-cn.php b/module/entry/lang/zh-cn.php index 1c0a8ab3b2..f4e6afd4d0 100644 --- a/module/entry/lang/zh-cn.php +++ b/module/entry/lang/zh-cn.php @@ -28,10 +28,10 @@ $lang->entry->url = '请求地址'; $lang->entry->apiIndex = '应用入口'; $lang->entry->saveSuccess = '保存成功'; $lang->entry->confirmDelete = '您确认要删除该应用吗?'; +$lang->entry->help = '使用说明'; $lang->entry->note = new stdClass(); $lang->entry->note->name = '授权应用名称'; $lang->entry->note->code = '授权应用代号,必须为字母或数字的组合'; $lang->entry->note->ip = "允许访问API的应用ip,多个ip用逗号隔开。支持IP段,如192.168.1.*"; $lang->entry->note->allIP = '无限制'; -$lang->entry->note->api = 'moduleName、methodName以及参数列表替换成实际的值'; diff --git a/module/entry/view/create.html.php b/module/entry/view/create.html.php index c159ef0a24..3f40522f91 100644 --- a/module/entry/view/create.html.php +++ b/module/entry/view/create.html.php @@ -54,8 +54,8 @@ - entry->apiIndex;?> - moduleVar}=moduleName&{$config->methodVar}=methodName&params=params&code=code&token=token";?> + entry->help;?> + entry->help, '', "target='_blank'");?> diff --git a/module/entry/view/edit.html.php b/module/entry/view/edit.html.php index 9bdd029539..c0658efb4d 100644 --- a/module/entry/view/edit.html.php +++ b/module/entry/view/edit.html.php @@ -54,8 +54,8 @@ - entry->apiIndex;?> - moduleVar}=moduleName&{$config->methodVar}=methodName&params=params&token=token";?> + entry->help;?> + entry->help, '', "target='_blank'");?> diff --git a/module/webhook/lang/zh-cn.php b/module/webhook/lang/zh-cn.php index f7f0c744fe..a646844c45 100644 --- a/module/webhook/lang/zh-cn.php +++ b/module/webhook/lang/zh-cn.php @@ -13,6 +13,7 @@ $lang->webhook->edit = '编辑钩子'; $lang->webhook->delete = '删除钩子'; $lang->webhook->id = 'ID'; +$lang->webhook->type = '类型'; $lang->webhook->name = '名称'; $lang->webhook->url = 'Hook地址'; $lang->webhook->contentType = '内容类型';