Commit 7e6d8cc0 by weijiguang

添加错误日志

parent abaaa24e
package com.soss.web.controller.coffee; package com.soss.web.controller.coffee;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.soss.common.annotation.Log; import com.soss.common.annotation.Log;
import com.soss.common.constant.HttpStatus; import com.soss.common.constant.HttpStatus;
...@@ -123,12 +124,14 @@ public class OrderController extends BaseController { ...@@ -123,12 +124,14 @@ public class OrderController extends BaseController {
AjaxResult result = check(order); AjaxResult result = check(order);
if (HttpStatus.SUCCESS != (int) result.get(result.CODE_TAG)) { if (HttpStatus.SUCCESS != (int) result.get(result.CODE_TAG)) {
log.error("error order:" + JSON.toJSONString(order));
return result; return result;
} }
try { try {
orderService.checkShopInfo(order); orderService.checkShopInfo(order);
} catch (ServiceException e) { } catch (ServiceException e) {
log.error("error order:" + JSON.toJSONString(order));
return AjaxResult.error(e.getMessage()); return AjaxResult.error(e.getMessage());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment