# Conflicts: # pom.xml # src/main/java/au/com/royalpay/payment/manage/merchants/enums/paymentScenarioEnum.java # src/main/java/au/com/royalpay/payment/manage/openim/core/OpenimClient.java # src/main/ui/static/config/devtools/templates/registerAlipayOnlineMerchant.html # src/main/ui/static/payment/partner/templates/add_partner.htmlmaster
commit
a60f1f40c5
@ -0,0 +1,9 @@
|
||||
package au.com.royalpay.payment.manage.posters.core;
|
||||
|
||||
|
||||
/**
|
||||
* create by todking at 2019-6-3
|
||||
*/
|
||||
public interface PosterService {
|
||||
void updatePoster(String imgUrl);
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package au.com.royalpay.payment.manage.posters.core.impls;
|
||||
|
||||
import au.com.royalpay.payment.manage.posters.core.PosterService;
|
||||
import cn.yixblog.platform.http.HttpRequestGenerator;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.yeepay.shade.org.apache.http.protocol.HTTP;
|
||||
import org.apache.http.entity.StringEntity;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
|
||||
import java.net.URISyntaxException;
|
||||
|
||||
|
||||
/**
|
||||
* create by todking at 2019-6-3
|
||||
*/
|
||||
|
||||
@Service
|
||||
public class PosterServiceImpl implements PosterService {
|
||||
@Value("${app.cms.host}")
|
||||
private String cmsHost;
|
||||
|
||||
@Override
|
||||
public void updatePoster(String imgUrl) {
|
||||
String url = cmsHost + "/api/statistics/count";
|
||||
try {
|
||||
new HttpRequestGenerator(url, RequestMethod.PUT).addQueryString("imgUrl", imgUrl).execute();
|
||||
}catch (URISyntaxException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package au.com.royalpay.payment.manage.posters.web;
|
||||
|
||||
|
||||
import au.com.royalpay.payment.manage.permission.manager.ManagerMapping;
|
||||
import au.com.royalpay.payment.manage.posters.core.PosterService;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* create by todking at 2019-6-3
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value = "/app/poster")
|
||||
public class posterController {
|
||||
|
||||
@Resource
|
||||
private PosterService posterService;
|
||||
|
||||
@RequestMapping(method = RequestMethod.PUT)
|
||||
public void updatePoster(@RequestBody JSONObject img ){
|
||||
posterService.updatePoster(img.getString("imgUrl"));
|
||||
}
|
||||
}
|
||||
@ -1,54 +0,0 @@
|
||||
[
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"children": [],
|
||||
"label": "立牌",
|
||||
"value": "qrcode"
|
||||
},
|
||||
{
|
||||
"children": [],
|
||||
"label": "POS",
|
||||
"value": "pos"
|
||||
}
|
||||
],
|
||||
"label": "门店",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"children": [],
|
||||
"label": "ipos",
|
||||
"value": "ipos"
|
||||
},
|
||||
{
|
||||
"children": [],
|
||||
"label": "银豹",
|
||||
"value": "pospal"
|
||||
},
|
||||
{
|
||||
"children": [],
|
||||
"label": "aupos",
|
||||
"value": "aupos"
|
||||
},
|
||||
{
|
||||
"children": [],
|
||||
"label": "其他",
|
||||
"value": "other"
|
||||
}
|
||||
],
|
||||
"label": "收银系统",
|
||||
"value": "2"
|
||||
},{
|
||||
"children": [
|
||||
{
|
||||
"children": [],
|
||||
"label": "无门店",
|
||||
"value": "no-store"
|
||||
}
|
||||
],
|
||||
"label": "其他",
|
||||
"value": "3"
|
||||
}
|
||||
]
|
||||
Loading…
Reference in new issue