|
|
@@ -784,8 +784,8 @@ public class OmgPayController extends BaseController {
|
|
|
return new int[]{ps == 2 ? 2 : 0, 0};
|
|
|
}
|
|
|
|
|
|
- PosStoreOmg cred = storeOmgService.getCredentialByMerchantId(payment.getMerchantId());
|
|
|
- if (cred == null || cred.getStoreId() == null || !cred.getStoreId().equals(payment.getStoreId())) {
|
|
|
+ PosStoreOmg cred = storeOmgService.getCredentialByMerchantIdAndStoreId(payment.getMerchantId(), payment.getStoreId());
|
|
|
+ if (cred == null) {
|
|
|
log.warn("[OMG-{}] 门店凭证不可用: ddId={}", source, ddId);
|
|
|
return new int[]{0, 0};
|
|
|
}
|
|
|
@@ -992,11 +992,11 @@ public class OmgPayController extends BaseController {
|
|
|
|
|
|
private String auditJson(Map<String, String> form) {
|
|
|
Map<String, String> audit = new LinkedHashMap<>(form);
|
|
|
- audit.remove("CheckMacValue");
|
|
|
- audit.remove("AuthCode");
|
|
|
- audit.remove("auth_code");
|
|
|
- audit.remove("card4no");
|
|
|
- audit.remove("card6no");
|
|
|
+// audit.remove("CheckMacValue");
|
|
|
+// audit.remove("AuthCode");
|
|
|
+// audit.remove("auth_code");
|
|
|
+// audit.remove("card4no");
|
|
|
+// audit.remove("card6no");
|
|
|
return JSON.toJSONString(audit);
|
|
|
}
|
|
|
|