Commit 757dc469 by huluobin

# 更新

parent ee977b5d
......@@ -36,9 +36,13 @@ public class CustomerController {
@Resource
CustomerMapper customerMapper;
@GetMapping("no_mockLogin")
@GetMapping("/customer/no_mockLogin")
public JsonResult<Void> mockLogin(@RequestParam String pwd,
@RequestParam Integer customerId) {
if (!pwd.equals("gogirlMockLogin")) {
throw new RRException("invalid req");
}
Customer customer = customerMapper.selectById(customerId);
GogirlToken gogirlToken = GogirlToken.builder()
.token(customerId + "_" + IdWorker.getIdStr().substring(6))
......
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