|
@@ -24,19 +24,21 @@ public class MobileAppThirdPartyHelper implements AppManagerFunction {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public AppMessage manageTransaction(String refid, String msisdn, String message, Map<String, String> syntax) {
|
|
public AppMessage manageTransaction(String refid, String msisdn, String message, Map<String, String> syntax) {
|
|
|
- try {
|
|
|
|
|
- String method = syntax.get("method");
|
|
|
|
|
|
|
+ String key = syntax.get("key");
|
|
|
|
|
+ String method = syntax.get("method");
|
|
|
|
|
+ String respmessage = key + ":" + method + ":";
|
|
|
|
|
+ try {
|
|
|
if(InitializerBean.containsKey(method)) {
|
|
if(InitializerBean.containsKey(method)) {
|
|
|
String[] paramarr = syntax.get("mparam").split("\\|");
|
|
String[] paramarr = syntax.get("mparam").split("\\|");
|
|
|
- return new Message(0,0,new JsonResponse(0,InitializerBean.callUssd(method, paramarr)).toString());
|
|
|
|
|
|
|
+ return new Message(0,0,respmessage + new JsonResponse(0,InitializerBean.callUssd(method, paramarr)).toString());
|
|
|
}else {
|
|
}else {
|
|
|
- return new Message(99,0,new JsonResponse(99,"System is busy").toString());
|
|
|
|
|
|
|
+ return new Message(99,0,respmessage + new JsonResponse(99,"System is busy").toString());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}catch(Exception e) {
|
|
}catch(Exception e) {
|
|
|
log.error("Error: Refid:"+refid+"|" ,e);
|
|
log.error("Error: Refid:"+refid+"|" ,e);
|
|
|
}
|
|
}
|
|
|
- return new Message(99,0,new JsonResponse(99,"System is busy").toString());
|
|
|
|
|
|
|
+ return new Message(99,0,respmessage + new JsonResponse(99,"System is busy").toString());
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|