|
|
|
@ -1,7 +1,9 @@
|
|
|
|
|
package au.com.royalpay.payment.manage.appclient.web;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.appclient.beans.RetailLoginInfo;
|
|
|
|
|
import au.com.royalpay.payment.manage.appclient.core.RetailAppService;
|
|
|
|
|
import au.com.royalpay.payment.manage.signin.core.SignInStatusManager;
|
|
|
|
|
import au.com.royalpay.payment.tools.CommonConsts;
|
|
|
|
|
import au.com.royalpay.payment.tools.device.DeviceSupport;
|
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
|
|
|
|
|
import au.com.royalpay.payment.tools.http.HttpUtils;
|
|
|
|
@ -32,6 +34,8 @@ public class RetailValidationController {
|
|
|
|
|
private SignInStatusManager signInStatusManager;
|
|
|
|
|
@Resource
|
|
|
|
|
private DeviceSupport deviceSupport;
|
|
|
|
|
@Resource
|
|
|
|
|
private RetailAppService retailAppService;
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/devices/{devType}/register", method = RequestMethod.POST)
|
|
|
|
|
public JSONObject register(@RequestBody String registeration, @PathVariable String devType) {
|
|
|
|
@ -91,4 +95,17 @@ public class RetailValidationController {
|
|
|
|
|
}
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 广告位
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value = "/ads", method = RequestMethod.GET)
|
|
|
|
|
public JSONObject getAd() {
|
|
|
|
|
return retailAppService.getAd();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/ads/{article_id}", method = RequestMethod.GET)
|
|
|
|
|
public JSONObject getAdDetail(@PathVariable String article_id) {
|
|
|
|
|
return retailAppService.getAdDetail( article_id);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|