Compare commits
2 Commits
98c94ec2d3
...
e4ea98f6e6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4ea98f6e6 | ||
|
|
042fe6307e |
1
.gitignore
vendored
1
.gitignore
vendored
@ -19,3 +19,4 @@ local.properties
|
|||||||
/app/uat/release/*
|
/app/uat/release/*
|
||||||
/app/uat
|
/app/uat
|
||||||
/.idea
|
/.idea
|
||||||
|
/app/prod/release
|
||||||
|
|||||||
@ -288,7 +288,7 @@ public class NetworkModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// String baseUrl = tmsAddress.trim() + "/api/v1/"; //for on prim
|
// String baseUrl = tmsAddress.trim() + "/api/v1/"; //for on prim
|
||||||
String baseUrl = tmsAddress.trim() + "/"; //for uat
|
String baseUrl = tmsAddress.trim() + "/"; //for uat and prod
|
||||||
|
|
||||||
final Gson gson =
|
final Gson gson =
|
||||||
new GsonBuilder().create();
|
new GsonBuilder().create();
|
||||||
|
|||||||
@ -120,7 +120,7 @@ public class Repository {
|
|||||||
}
|
}
|
||||||
public Observable<EReceiptResponse> sendReceipt(Object body){
|
public Observable<EReceiptResponse> sendReceipt(Object body){
|
||||||
String apiSecret = BuildConfig.ERECEIPT_SECRET;
|
String apiSecret = BuildConfig.ERECEIPT_SECRET;
|
||||||
LogUtil.d("kmk", "receipt secret =>" + apiSecret);
|
// LogUtil.d("kmk", "receipt secret =>" + apiSecret);
|
||||||
String timestamp = String.valueOf(System.currentTimeMillis());
|
String timestamp = String.valueOf(System.currentTimeMillis());
|
||||||
String bodyString = new Gson().toJson(body);
|
String bodyString = new Gson().toJson(body);
|
||||||
String dataToHash = bodyString + apiSecret + timestamp;
|
String dataToHash = bodyString + apiSecret + timestamp;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user