|
|
@@ -4,6 +4,7 @@ import com.tencentyun.TLSSigAPIv2;
|
|
|
import me.zhengjie.annotation.AnonymousAccess;
|
|
|
import me.zhengjie.base.BaseResponse;
|
|
|
import me.zhengjie.base.ResultData;
|
|
|
+import me.zhengjie.base.config.AppConfigInfo;
|
|
|
import me.zhengjie.websocket.MsgType;
|
|
|
import me.zhengjie.websocket.SocketMsg;
|
|
|
import me.zhengjie.websocket.WebSocketServer;
|
|
|
@@ -44,7 +45,7 @@ public class DemoController {
|
|
|
@ResponseBody
|
|
|
@RequestMapping("/getUserSig")
|
|
|
public BaseResponse getUserSig(@RequestBody Map<String,String> map) {
|
|
|
- TLSSigAPIv2 api = new TLSSigAPIv2(1400574616, "9ef701536792a0bdacf7dbf902301a1f113d200157e9e6be368b3dadba321800");
|
|
|
+ TLSSigAPIv2 api = new TLSSigAPIv2(AppConfigInfo.SDK_APP_ID, AppConfigInfo.TTL_SIG_KEY);
|
|
|
BaseResponse response = new BaseResponse();
|
|
|
String s = api.genUserSig(map.get("userId"), 604800);
|
|
|
response.setData(new ResultData(s));
|