Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
195ed6b5
Commit
195ed6b5
authored
May 07, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logo
parent
2a951ab4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
227 additions
and
1 deletions
+227
-1
center-channel/app/base/api/impl/action/logoOrderApi.js
+6
-0
center-channel/app/base/service/impl/common/centerorderSve.js
+41
-1
center-channel/app/front/entry/public/apidoc/platform/logoOrder.md
+180
-0
No files found.
center-channel/app/base/api/impl/action/logoOrderApi.js
View file @
195ed6b5
...
@@ -33,6 +33,12 @@ class LogoOrderAPI extends APIBase {
...
@@ -33,6 +33,12 @@ class LogoOrderAPI extends APIBase {
case
"singlelogo"
:
//生成logo
case
"singlelogo"
:
//生成logo
opResult
=
await
this
.
centerorderSve
.
singlelogo
(
pobj
);
opResult
=
await
this
.
centerorderSve
.
singlelogo
(
pobj
);
break
;
break
;
case
"changelogo"
:
//换一批logo
opResult
=
await
this
.
centerorderSve
.
changelogo
(
pobj
);
break
;
case
"downloadlogoscene"
:
//下载logo场景
opResult
=
await
this
.
centerorderSve
.
downloadlogoscene
(
pobj
);
break
;
case
"getPaidLogoListByUser"
:
//获取已购买的logo
case
"getPaidLogoListByUser"
:
//获取已购买的logo
opResult
=
await
this
.
centerorderSve
.
reqCenterOrderApi
(
pobj
,
"action/logoOrderApi/springBoard"
);
opResult
=
await
this
.
centerorderSve
.
reqCenterOrderApi
(
pobj
,
"action/logoOrderApi/springBoard"
);
break
;
break
;
...
...
center-channel/app/base/service/impl/common/centerorderSve.js
View file @
195ed6b5
...
@@ -399,7 +399,47 @@ class CenterorderService extends AppServiceBase {
...
@@ -399,7 +399,47 @@ class CenterorderService extends AppServiceBase {
return
res
;
return
res
;
}
}
//--------------------------阿里ICP---end--------------------------------------------------------
//--------------------------阿里ICP---end--------------------------------------------------------
//LOGO场景接口服务
async
downloadlogoscene
(
pobj
){
var
reqUrl
=
"http://43.247.184.92:15501/api/downloadscene"
;
var
obj
=
pobj
.
actionBody
;
if
(
!
obj
.
title
){
return
system
.
getResult
(
null
,
"品牌名称不能为空"
);
}
if
(
!
obj
.
id
){
return
system
.
getResult
(
null
,
"品牌id不能为空"
);
}
var
rtn
=
null
;
try
{
rtn
=
await
this
.
execClient
.
execPost
(
obj
,
reqUrl
);
var
res
=
JSON
.
parse
(
rtn
.
stdout
);
return
res
;
}
catch
(
e
)
{
return
system
.
getResult
(
null
,
"获取logo场景异常"
);
}
}
//换一批logo
async
changelogo
(
pobj
){
var
reqUrl
=
"http://43.247.184.92:15501/api/changelogo"
;
var
obj
=
pobj
.
actionBody
;
if
(
!
obj
.
title
){
return
system
.
getResult
(
null
,
"品牌名称不能为空"
);
}
if
(
!
obj
.
profession
){
return
system
.
getResult
(
null
,
"行业名称不能为空"
);
}
if
(
!
obj
.
description
){
obj
.
description
=
""
;
}
var
rtn
=
null
;
try
{
rtn
=
await
this
.
execClient
.
execPost
(
obj
,
reqUrl
);
var
res
=
JSON
.
parse
(
rtn
.
stdout
);
return
res
;
}
catch
(
e
)
{
return
system
.
getResult
(
null
,
"获取logo异常"
);
}
}
//生成logo
//生成logo
async
singlelogo
(
pobj
){
async
singlelogo
(
pobj
){
var
reqUrl
=
"http://43.247.184.92:15501/api/singlelogo"
;
var
reqUrl
=
"http://43.247.184.92:15501/api/singlelogo"
;
...
...
center-channel/app/front/entry/public/apidoc/platform/logoOrder.md
View file @
195ed6b5
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
1.
[
获取已购买的logo
](
#getPaidLogoListByUser
)
1.
[
获取已购买的logo
](
#getPaidLogoListByUser
)
1.
[
下载logo
](
#getLogoMaterial
)
1.
[
下载logo
](
#getLogoMaterial
)
1.
[
取消收藏
](
#cancelCollectLogo
)
1.
[
取消收藏
](
#cancelCollectLogo
)
1.
[
换一批logo
](
#changelogo
)
1.
[
获取logo场景
](
#downloadlogoscene
)
## **<a name="singlelogo"> 生成logo</a>**
## **<a name="singlelogo"> 生成logo</a>**
[
返回到目录
](
#menu
)
[
返回到目录
](
#menu
)
...
@@ -341,3 +343,181 @@
...
@@ -341,3 +343,181 @@
}
}
```
```
## **<a name="changelogo"> 换一批logo</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/action/logoOrderApi/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:changelogo
```
javascript
{
"actionType"
:
"changelogo"
,
"actionBody"
:{
"title"
:
"庄冰"
,
//品牌名称 必填
"subtitle"
:
"bing"
,
//品牌标语 非必填
"profession"
:
"通信行业"
,
//行业 必填
"description"
:
""
//简介
}
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"成功"
,
"total"
:
10
,
"data"
:[
{
"id"
:
5936
,
"title"
:
"庄冰"
,
"subtitle"
:
"bing"
,
"first_color"
:
"(4,18,5)"
,
"sec_color"
:
"(0,0,0)"
,
"color_description"
:
"基础百搭的庄重黑色,象征专业,前卫,严正。"
,
"font_description"
:
""
庄冰
"选用"
庞门正道粗书体
"字体,字体结构严谨,笔画端正,却又带着书法韵味,利用笔锋破型,打破拘谨。"
,
"pic_url"
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_20200507043158756.png"
},
{
"id"
:
5928
,
"title"
:
"庄冰"
,
"subtitle"
:
"bing"
,
"first_color"
:
"(255,8,0)"
,
"sec_color"
:
"(0,0,0)"
,
"color_description"
:
"浓郁喜庆的古典红色,象征生命,活力,激情。"
,
"font_description"
:
""
庄冰
"选用"
庞门正道粗书体
"字体,字体结构严谨,笔画端正,却又带着书法韵味,利用笔锋破型,打破拘谨。"
,
"pic_url"
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_202005070431584706.png"
},
{
"id"
:
5923
,
"title"
:
"庄冰"
,
"subtitle"
:
"bing"
,
"first_color"
:
"(0,0,0)"
,
"sec_color"
:
"(0,0,0)"
,
"color_description"
:
"基础百搭的庄重黑色,象征专业,前卫,严正。"
,
"font_description"
:
""
庄冰
"选用"
站酷小薇
LOGO
体
"字体,沉稳又富于灵动,清晰简洁,布白均匀,具有极强的时尚感。"
,
"pic_url"
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_202005070431591027.png"
},
{
"id"
:
5942
,
"title"
:
"庄冰"
,
"subtitle"
:
"bing"
,
"first_color"
:
"(249,137,66)"
,
"sec_color"
:
"(0,0,0)"
,
"color_description"
:
"橙色是欢快活泼的光辉色彩,是暖色系中最温暖的色。"
,
"font_description"
:
""
庄冰
"选用"
文泉驿等宽微米黑
"字体,字形整齐划一,结构严谨,应用广泛。"
,
"pic_url"
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_20200507043200603.png"
},
{
"id"
:
5911
,
"title"
:
"庄冰"
,
"subtitle"
:
"bing"
,
"first_color"
:
"(0,140,211)"
,
"sec_color"
:
"(0,0,0)"
,
"color_description"
:
"深远永恒的沉静蓝色,象征睿智,脱俗,自然。"
,
"font_description"
:
""
庄冰
"选用"
OPPOSans
-
H
"字体,字体整齐划一,笔画纤细,结构严谨,应用广泛,设计感强。"
,
"pic_url"
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_202005070432023594.png"
},
{
"id"
:
5938
,
"title"
:
"庄冰"
,
"subtitle"
:
"bing"
,
"first_color"
:
"(0,134,218)"
,
"sec_color"
:
"(0,0,0)"
,
"color_description"
:
"深远永恒的沉静蓝色,象征睿智,脱俗,自然。"
,
"font_description"
:
""
庄冰
"选用"
日本花园明朝体
"字体,字体沉稳又富于灵动,清晰简洁,布白均匀,具有极强的时尚感。"
,
"pic_url"
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_202005070432025797.png"
},
{
"id"
:
5927
,
"title"
:
"庄冰"
,
"subtitle"
:
"bing"
,
"first_color"
:
"(192,52,116)"
,
"sec_color"
:
"(0,0,0)"
,
"color_description"
:
"洋红色保持了冲击力又表现出洗练的潇洒感觉。"
,
"font_description"
:
""
庄冰
"选用"
沐瑶软笔手写体
"字体,笔画俏皮轻松,辨识度极高,童趣满满。"
,
"pic_url"
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_202005070432035216.png"
},
{
"id"
:
5917
,
"title"
:
"庄冰"
,
"subtitle"
:
"bing"
,
"first_color"
:
"(0,102,153)"
,
"sec_color"
:
"(0,0,0)"
,
"color_description"
:
"深远永恒的沉静蓝色,象征睿智,脱俗,自然。"
,
"font_description"
:
""
庄冰
"选用"
站酷小薇
LOGO
体
"字体,沉稳又富于灵动,清晰简洁,布白均匀,具有极强的时尚感。"
,
"pic_url"
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_202005070432058944.png"
},
{
"id"
:
5943
,
"title"
:
"庄冰"
,
"subtitle"
:
"bing"
,
"first_color"
:
"(232,168,14)"
,
"sec_color"
:
"(0,0,0)"
,
"color_description"
:
"橙色是欢快活泼的光辉色彩,是暖色系中最温暖的色。"
,
"font_description"
:
""
庄冰
"选用"
站酷高端黑
"字体,字体沉稳又富于灵动,清晰简洁,布白均匀,具有极强的时尚感。"
,
"pic_url"
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_20200507043205893.png"
},
{
"id"
:
5907
,
"title"
:
"庄冰"
,
"subtitle"
:
"bing"
,
"first_color"
:
"(0,0,0)"
,
"sec_color"
:
"(0,0,0)"
,
"color_description"
:
"基础百搭的庄重黑色,象征专业,前卫,严正。"
,
"font_description"
:
""
庄冰
"选用"
Taipei
-
Sans
-
TC
-
Beta
-
Light
"字体,字形整齐划一,结构严谨,应用广泛。"
,
"pic_url"
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_202005070432069646.png"
}
],
"requestId"
:
"966af1f8390542d4a418db90c6aaafcd"
}
```
## **<a name="downloadlogoscene"> 获取logo场景</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/action/logoOrderApi/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:downloadlogoscene
```
javascript
{
"actionType"
:
"downloadlogoscene"
,
"actionBody"
:{
"title"
:
"庄冰"
,
//品牌名称 必填
"subtitle"
:
"bing"
,
//品牌标语 非必填
"id"
:
"5942"
//品牌id 必填
}
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"成功"
,
"data"
:[
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/scene_screen_202005070443164353.png"
,
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/scene_book_202005070443163055.png"
,
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/scene_handbag_202005070443162492.png"
,
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/scene_cosmetics_202005070443169760.png"
,
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/scene_shampoo_202005070443164053.png"
,
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/scene_bag_202005070443165126.png"
,
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/scene_cup_202005070443176100.png"
,
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/scene_computer_202005070443174836.png"
,
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/scene_reception_202005070443174387.png"
],
"requestId"
:
"dec12e32530249f298f6d06e4b0e35b3"
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment