Commit 22ba8197 by yangyang

第三方token获取提交(标准)

parent 91fba8dd
......@@ -33,6 +33,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
......@@ -236,7 +237,10 @@ public class SkServiceApplyController extends ApiController {
return new MapRestResult(201, "error", 1, "token获取失败!");
}
}
return new MapRestResult(200, "OK", 1, token);
Map mapResult = new HashMap();
mapResult.put("token",token);
mapResult.put("expire","86400");
return new MapRestResult(200, "OK", 1, mapResult);
}
}
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