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
89219d82
Commit
89219d82
authored
Apr 28, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
collect logo
parent
fc1ebeca
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
148 additions
and
42 deletions
+148
-42
center-order/app/base/api/impl/action/logoOrderApi.js
+6
-2
center-order/app/base/service/impl/dbcorder/logoOrderSve.js
+142
-35
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
+0
-5
No files found.
center-order/app/base/api/impl/action/logoOrderApi.js
View file @
89219d82
...
@@ -5,6 +5,7 @@ class LogoOrderAPI extends APIBase {
...
@@ -5,6 +5,7 @@ class LogoOrderAPI extends APIBase {
constructor
()
{
constructor
()
{
super
();
super
();
this
.
orderinfoSve
=
system
.
getObject
(
"service.dbcorder.orderinfoSve"
);
this
.
orderinfoSve
=
system
.
getObject
(
"service.dbcorder.orderinfoSve"
);
this
.
logoOrderSve
=
system
.
getObject
(
"service.dbcorder.logoOrderSve"
);
}
}
/**
/**
* 接口跳转-POST请求
* 接口跳转-POST请求
...
@@ -25,11 +26,14 @@ class LogoOrderAPI extends APIBase {
...
@@ -25,11 +26,14 @@ class LogoOrderAPI extends APIBase {
case
"getPaidLogoListByUser"
:
//获取已购买的logo
case
"getPaidLogoListByUser"
:
//获取已购买的logo
opResult
=
this
.
orderinfoSve
.
getPaidLogoListByUser
(
pobj
);
opResult
=
this
.
orderinfoSve
.
getPaidLogoListByUser
(
pobj
);
break
;
break
;
case
"getLogoMaterial"
:
//下载logo素材
opResult
=
this
.
logoOrderSve
.
getLogoMaterial
(
pobj
);
break
;
case
"getCollectibleLogoListByUser"
:
//获取收藏的logo
case
"getCollectibleLogoListByUser"
:
//获取收藏的logo
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
opResult
=
this
.
logoOrderSve
.
getCollectibleLogoListByUser
(
pobj
);
break
;
break
;
case
"collectLogo"
:
//收藏logo
case
"collectLogo"
:
//收藏logo
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
opResult
=
this
.
logoOrderSve
.
collectLogo
(
pobj
);
break
;
break
;
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
...
...
center-order/app/base/service/impl/dbcorder/logoOrderSve.js
View file @
89219d82
This diff is collapsed.
Click to expand it.
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
View file @
89219d82
...
@@ -324,11 +324,6 @@ class OrderInfoService extends ServiceBase {
...
@@ -324,11 +324,6 @@ class OrderInfoService extends ServiceBase {
if
(
!
actionBody
.
deliveryData
||
Object
.
keys
(
actionBody
.
deliveryData
).
length
==
0
)
{
if
(
!
actionBody
.
deliveryData
||
Object
.
keys
(
actionBody
.
deliveryData
).
length
==
0
)
{
return
system
.
getResult
(
null
,
"交付数据不能为空,20135"
);
return
system
.
getResult
(
null
,
"交付数据不能为空,20135"
);
}
}
// {
// "id": 1138, //id:后续用了购买的标识,购买时需要回传
// "description": "淡蓝色象征着清新,淡雅", //描述
// "pic_url": "https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_202004270135297459.png" //图像url
// },
var
deliveryData
=
actionBody
.
deliveryData
;
var
deliveryData
=
actionBody
.
deliveryData
;
if
(
!
deliveryData
.
logo_id
)
{
if
(
!
deliveryData
.
logo_id
)
{
return
system
.
getResult
(
null
,
"logo_Id不能为空,20150"
);
return
system
.
getResult
(
null
,
"logo_Id不能为空,20150"
);
...
...
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