This is an automated email from the ASF dual-hosted git repository.

mabin pushed a commit to branch houserush-sample
in repository https://gitbox.apache.org/repos/asf/servicecomb-samples.git

commit 5aee0aca415b271afcb9fb751cf1c0cd3b5ee791
Author: alec.zheng <[email protected]>
AuthorDate: Tue Aug 6 18:40:23 2019 +0800

    change the exception message from chinese to english
---
 .../practise/houserush/sale/service/HouseOrderServiceImpl.java       | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/houserush/house-order/src/main/java/org/apache/servicecomb/samples/practise/houserush/sale/service/HouseOrderServiceImpl.java
 
b/houserush/house-order/src/main/java/org/apache/servicecomb/samples/practise/houserush/sale/service/HouseOrderServiceImpl.java
index eeed043..e2dfd3c 100644
--- 
a/houserush/house-order/src/main/java/org/apache/servicecomb/samples/practise/houserush/sale/service/HouseOrderServiceImpl.java
+++ 
b/houserush/house-order/src/main/java/org/apache/servicecomb/samples/practise/houserush/sale/service/HouseOrderServiceImpl.java
@@ -84,7 +84,6 @@ public class HouseOrderServiceImpl implements 
HouseOrderService {
 
     if (null != houseOrder) {
       if (null == houseOrder.getCustomerId()) {
-        Customer customer = customerManageApi.findCustomer(customerId);
         int qualificationsCount = 
customerManageApi.getQualificationsCount(customerId, sale.getId());
 
         int ordersCount = houseOrderDao.countByCustomerIdAndSaleId(customerId, 
sale.getId());
@@ -99,10 +98,10 @@ public class HouseOrderServiceImpl implements 
HouseOrderService {
         houseOrderDao.save(houseOrder);
         return houseOrder;
       } else {
-        throw new InvocationException(400, "", "该住宅已被其他人选购,请选择其他房产。");
+        throw new InvocationException(400, "", "this house have been occupied 
first by other customer, please choose another house or try it later.");
       }
     } else {
-      throw new InvocationException(400, "", "选择的房产不在此次抢购活动中");
+      throw new InvocationException(400, "", "this house which you chose does 
not belong to the current sale.");
     }
   }
 

Reply via email to