|
|
@ -17,7 +17,6 @@ import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.io.UnsupportedEncodingException; |
|
|
|
import java.nio.charset.StandardCharsets; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
@ -138,7 +137,7 @@ public class JcetApiService extends AbstractApiService { |
|
|
|
*/ |
|
|
|
private Map<String, Object> getHeaders(int bodyLength, String appKey, String appSecret) throws UnsupportedEncodingException { |
|
|
|
|
|
|
|
Map<String, String> headers = new HashMap(); |
|
|
|
Map<String, Object> headers = new HashMap(); |
|
|
|
long timestamp = System.currentTimeMillis(); |
|
|
|
headers.put(JcetConstants.PLAT_HEADER_OPEN_TIMESTAMP, timestamp); |
|
|
|
headers.put(JcetConstants.PLAT_HEADER_OPEN_APP_ID, appKey); |
|
|
|