|
@@ -3,7 +3,6 @@ package com.qmth.demo.api.controller;
|
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
import com.qmth.boot.core.retrofit.utils.SignatureInfo;
|
|
|
import com.qmth.boot.core.solar.service.SolarService;
|
|
|
-import com.qmth.boot.tools.signature.SignatureType;
|
|
|
import com.qmth.demo.api.client.SolarTestClient;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -23,7 +22,7 @@ public class SolarController {
|
|
|
|
|
|
@RequestMapping("/app/info2")
|
|
|
public Object appInfo(@RequestParam String accessKey, @RequestParam String accessSecret) {
|
|
|
- return solarTestClient.getAppInfo(new SignatureInfo(SignatureType.SECRET, accessKey, accessSecret).toString());
|
|
|
+ return solarTestClient.getAppInfo(SignatureInfo.secret(accessKey, accessSecret));
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/app/info")
|