记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
fb6b133a
Commit
fb6b133a
authored
Jun 20, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
f9d8fabd
b924897a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
49 deletions
+43
-49
BizExceptionFeignErrorDecoder.java
...et/common/feign/config/BizExceptionFeignErrorDecoder.java
+1
-2
AdamLoginController.java
...iquidnet/service/adam/controller/AdamLoginController.java
+7
-13
errors.properties
...et-service-adam-impl/src/main/resources/errors.properties
+2
-1
KylinOrderTicketsServiceImpl.java
...vice/kylin/service/impl/KylinOrderTicketsServiceImpl.java
+33
-33
No files found.
liquidnet-bus-common/liquidnet-common-feign/src/main/java/com/liquidnet/common/feign/config/BizExceptionFeignErrorDecoder.java
View file @
fb6b133a
package
com
.
liquidnet
.
common
.
feign
.
config
;
import
com.alibaba.fastjson.JSON
;
import
com.liquidnet.
service.constant.GlobalConstant
;
import
com.liquidnet.
common.exception.LiquidnetFeignException
;
import
com.liquidnet.common.exception.constant.ErrorCode
;
import
com.liquidnet.common.exception.entity.Error
;
import
com.liquidnet.common.exception.LiquidnetFeignException
;
import
feign.Response
;
import
feign.Util
;
import
org.slf4j.Logger
;
...
...
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/java/com/liquidnet/service/adam/controller/AdamLoginController.java
View file @
fb6b133a
...
...
@@ -79,16 +79,10 @@ public class AdamLoginController {
@GetMapping
(
value
=
{
"gen"
})
public
void
genID
()
{
log
.
debug
(
"0gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"1gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"2gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"3gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"4gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"5gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"6gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"7gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"8gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"9gen id:{}\n"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"-nextSnowId:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"nextMilliId:{}"
,
IDGenerator
.
nextMilliId
());
log
.
debug
(
"nextMilliId:{}"
,
IDGenerator
.
nextTimeId
());
log
.
debug
(
"nextMilliId:{}"
,
IDGenerator
.
get32UUID
());
}
@ApiOperationSupport
(
order
=
2
)
...
...
@@ -145,7 +139,7 @@ public class AdamLoginController {
if
(
toRegister
)
{
userInfoVo
=
adamUserService
.
register
(
mobile
);
if
(
null
==
userInfoVo
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"1000
3
"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"1000
0
"
));
}
}
else
{
userInfoVo
=
adamRdmService
.
getUserInfoVoByUid
(
uid
);
...
...
@@ -182,7 +176,7 @@ public class AdamLoginController {
if
(
toRegister
)
{
userInfoVo
=
adamUserService
.
register
(
mobile
);
if
(
null
==
userInfoVo
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"1000
3
"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"1000
0
"
));
}
}
else
{
userInfoVo
=
adamRdmService
.
getUserInfoVoByUid
(
uid
);
...
...
@@ -227,7 +221,7 @@ public class AdamLoginController {
}
AdamUserInfoVo
registerUserInfo
=
adamUserService
.
register
(
parameter
);
if
(
null
==
registerUserInfo
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"1000
3
"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"1000
0
"
));
}
loginInfoVo
.
setUserInfo
(
registerUserInfo
);
loginInfoVo
.
setThirdPartInfo
(
adamRdmService
.
getThirdPartVoListByUid
(
registerUserInfo
.
getUid
()));
...
...
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/resources/errors.properties
View file @
fb6b133a
...
...
@@ -3,9 +3,10 @@
40003
=
TOKEN失效
# ------------------------ 4开头错误码作系统保留
10000
=
系统繁忙,请稍候重试
10001
=
验证码发送失败
10002
=
验证码无效
10003
=
系统繁忙,请稍候重试
10003
=
10004
=
10005
=
手机号获取失败,请更换登录方式
10006
=
第三方账号未注册
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinOrderTicketsServiceImpl.java
View file @
fb6b133a
...
...
@@ -563,39 +563,39 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
String
returnData
=
HttpUtil
.
post
(
payUrl
+
payOrderParam
.
getDeviceFrom
()
+
"/"
+
payOrderParam
.
getPayType
(),
httpData
);
currentTime
=
System
.
currentTimeMillis
()
-
currentTime
;
log
.
debug
(
"调用 PHP 支付 -> time:"
+
(
currentTime
)
+
"毫秒"
);
PayResultVo
payResultVo
=
JsonUtils
.
fromJson
(
returnData
,
PayResultVo
.
class
);
//
PayResultVo payResultVo = null;
//
try {
//
payResultVo = JsonUtils.fromJson("{\n" +
//
" \"code\": \"20210618130049218267704668657P\",\n" +
//
" \"order_code\": \"T7774750254320448484\",\n" +
//
" \"status\": null,\n" +
//
" \"order_id\": \"77747502543208448\",\n" +
//
" \"showUrl\": \"http://devm.zhengzai.tv/#/ticket/purchase/detail?id=5936241&type=purchase&performance_id=5936241&ticket_id=10981&amount=1&products_array=&amount_array=&express=077747502543208448\",\n" +
//
" \"returnUrl\": \"http://devm.zhengzai.tv/#/order/status?order_type=ticket&order_id=77747502543208448\",\n" +
//
" \"price\": 0.01,\n" +
//
" \"pay_data\": {\n" +
//
" \"packages\": null,\n" +
//
" \"partnerid\": null,\n" +
//
" \"prepayid\": null,\n" +
//
" \"sign\": null,\n" +
//
" \"mweb_url\": null,\n" +
//
" \"paySign\": null,\n" +
//
" \"signType\": null,\n" +
//
" \"redirect_url\": \"https://openapi.alipay.com/gateway.do?alipay_sdk=lokielse%2Fomnipay-alipay&app_id=2019082866535131&biz_content=%7B%22product_code%22%3A%22QUICK_WAP_PAY%22%2C%22total_amount%22%3A%220.01%22%2C%22subject%22%3A%2206%5Cu670830%5Cu65e5%5Cu5355%5Cu65e5%5Cu7968%5Cu80e1%5Cu5927%5Cu7f8e%5Cu5e76%5Cu53d1%5Cu4e0b%5Cu5355%22%2C%22body%22%3A%22%5Cu80e1%5Cu5927%5Cu7f8e%5Cu5e76%5Cu53d1%5Cu4e0b%5Cu5355%5Cu5355%5Cu65e5%5Cu796806%5Cu670830%5Cu65e5%22%2C%22out_trade_no%22%3A%2220210618130049218267704668657P%22%2C%22time_expire%22%3A%222021-06-18+13%3A06%22%2C%22quit_url%22%3A%22http%3A%5C%2F%5C%2Fdevm.zhengzai.tv%5C%2F%23%5C%2Fticket%5C%2Fpurchase%5C%2Fdetail%3Fid%3D5936241%26amp%3Btype%3Dpurchase%26amp%3Bperformance_id%3D5936241%26amp%3Bticket_id%3D10981%26amp%3Bamount%3D1%26amp%3Bproducts_array%3D%26amp%3Bamount_array%3D%26amp%3Bexpress%3D077747502543208448%22%7D&charset=utf-8&format=JSON&method=alipay.trade.wap.pay¬ify_url=http%3A%2F%2Ftestpay.zhengzai.tv%2Fnotify%2Fwap%2Falipay%2F1&return_url=http%3A%2F%2Fdevm.zhengzai.tv%2F%23%2Forder%2Fstatus%3Forder_type%3Dticket%26amp%3Border_id%3D77747502543208448&sign_type=RSA2×tamp=2021-06-18+13%3A00%3A49&version=1.0&sign=UaHmNdI1cXjjSkR4gwrnELSWXqb1Icg1uCOe0vEo5yHCqWOy4JZCZbjCR1xOHQKowSMBAr6U2XLtMAaNXr6mX%2B%2F5IiaChsD4IPoODNT7F4GckVcqP3GkdLZTro%2FGmBau6VoYw1uVpyutQTJsjEU1fQ%2F5KDAKLvg0XG%2F1D%2BXb%2Bv6LdLDvehCEPzy4W%2BCT0qPANU4ysgZkt9hP1ljH61%2FBWiDnfz%2BOdust4KBoJYQzNWO3XSwvc17OxdGHn8EBmYRJz6sr1nt0i2h4BGQtjrOHRB3dToVkxrlsHtbrOmiCdRFH6utSVA8UjeKtlEB%2FH%2BkQfVxPkpOicTjkokhDNK6svg%3D%3D\",\n" +
//
" \"order_str\": null,\n" +
//
" \"appId\": null,\n" +
//
" \"appid\": null,\n" +
//
" \"nonceStr\": null,\n" +
//
" \"noncestr\": null,\n" +
//
" \"timeStamp\": null,\n" +
//
" \"timestamp\": null,\n" +
//
" \"package\": null\n" +
//
" }\n" +
//
" }", PayResultVo.class);
//
} catch (Exception e) {
//
payResultVo = new PayResultVo();
//
}
//
PayResultVo payResultVo = JsonUtils.fromJson(returnData, PayResultVo.class);
PayResultVo
payResultVo
=
null
;
try
{
payResultVo
=
JsonUtils
.
fromJson
(
"{\n"
+
" \"code\": \"20210618130049218267704668657P\",\n"
+
" \"order_code\": \"T7774750254320448484\",\n"
+
" \"status\": null,\n"
+
" \"order_id\": \"77747502543208448\",\n"
+
" \"showUrl\": \"http://devm.zhengzai.tv/#/ticket/purchase/detail?id=5936241&type=purchase&performance_id=5936241&ticket_id=10981&amount=1&products_array=&amount_array=&express=077747502543208448\",\n"
+
" \"returnUrl\": \"http://devm.zhengzai.tv/#/order/status?order_type=ticket&order_id=77747502543208448\",\n"
+
" \"price\": 0.01,\n"
+
" \"pay_data\": {\n"
+
" \"packages\": null,\n"
+
" \"partnerid\": null,\n"
+
" \"prepayid\": null,\n"
+
" \"sign\": null,\n"
+
" \"mweb_url\": null,\n"
+
" \"paySign\": null,\n"
+
" \"signType\": null,\n"
+
" \"redirect_url\": \"https://openapi.alipay.com/gateway.do?alipay_sdk=lokielse%2Fomnipay-alipay&app_id=2019082866535131&biz_content=%7B%22product_code%22%3A%22QUICK_WAP_PAY%22%2C%22total_amount%22%3A%220.01%22%2C%22subject%22%3A%2206%5Cu670830%5Cu65e5%5Cu5355%5Cu65e5%5Cu7968%5Cu80e1%5Cu5927%5Cu7f8e%5Cu5e76%5Cu53d1%5Cu4e0b%5Cu5355%22%2C%22body%22%3A%22%5Cu80e1%5Cu5927%5Cu7f8e%5Cu5e76%5Cu53d1%5Cu4e0b%5Cu5355%5Cu5355%5Cu65e5%5Cu796806%5Cu670830%5Cu65e5%22%2C%22out_trade_no%22%3A%2220210618130049218267704668657P%22%2C%22time_expire%22%3A%222021-06-18+13%3A06%22%2C%22quit_url%22%3A%22http%3A%5C%2F%5C%2Fdevm.zhengzai.tv%5C%2F%23%5C%2Fticket%5C%2Fpurchase%5C%2Fdetail%3Fid%3D5936241%26amp%3Btype%3Dpurchase%26amp%3Bperformance_id%3D5936241%26amp%3Bticket_id%3D10981%26amp%3Bamount%3D1%26amp%3Bproducts_array%3D%26amp%3Bamount_array%3D%26amp%3Bexpress%3D077747502543208448%22%7D&charset=utf-8&format=JSON&method=alipay.trade.wap.pay¬ify_url=http%3A%2F%2Ftestpay.zhengzai.tv%2Fnotify%2Fwap%2Falipay%2F1&return_url=http%3A%2F%2Fdevm.zhengzai.tv%2F%23%2Forder%2Fstatus%3Forder_type%3Dticket%26amp%3Border_id%3D77747502543208448&sign_type=RSA2×tamp=2021-06-18+13%3A00%3A49&version=1.0&sign=UaHmNdI1cXjjSkR4gwrnELSWXqb1Icg1uCOe0vEo5yHCqWOy4JZCZbjCR1xOHQKowSMBAr6U2XLtMAaNXr6mX%2B%2F5IiaChsD4IPoODNT7F4GckVcqP3GkdLZTro%2FGmBau6VoYw1uVpyutQTJsjEU1fQ%2F5KDAKLvg0XG%2F1D%2BXb%2Bv6LdLDvehCEPzy4W%2BCT0qPANU4ysgZkt9hP1ljH61%2FBWiDnfz%2BOdust4KBoJYQzNWO3XSwvc17OxdGHn8EBmYRJz6sr1nt0i2h4BGQtjrOHRB3dToVkxrlsHtbrOmiCdRFH6utSVA8UjeKtlEB%2FH%2BkQfVxPkpOicTjkokhDNK6svg%3D%3D\",\n"
+
" \"order_str\": null,\n"
+
" \"appId\": null,\n"
+
" \"appid\": null,\n"
+
" \"nonceStr\": null,\n"
+
" \"noncestr\": null,\n"
+
" \"timeStamp\": null,\n"
+
" \"timestamp\": null,\n"
+
" \"package\": null\n"
+
" }\n"
+
" }"
,
PayResultVo
.
class
);
}
catch
(
Exception
e
)
{
payResultVo
=
new
PayResultVo
();
}
payResultVo
.
setOrder_id
(
orderTicketId
);
payResultVo
.
setPrice
(
orderTickets
.
getPriceActual
());
orderTickets
.
setPayCode
(
payResultVo
.
getCode
());
...
...
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