# Conflicts: # src/main/ui/static/payment/partner/templates/sub_partners.htmlmaster
commit
73bbc16ec3
@ -0,0 +1,48 @@
|
||||
package au.com.royalpay.payment.manage.merchants.enums;
|
||||
|
||||
/**
|
||||
* @Author: luoyang
|
||||
* @Date: 2019-05-29 10:30
|
||||
*/
|
||||
public enum paymentScenarioEnum {
|
||||
PC_WEB(1, "PC网站"),
|
||||
|
||||
MOBILE_WEB(2, "手机端网站"),
|
||||
|
||||
APP(3, "APP"),
|
||||
|
||||
WECHAT_ALIPAY_WEB(4, "微信内、支付宝内网站"),
|
||||
|
||||
MINIPROGRAM(5, "小程序"),
|
||||
|
||||
QRCODE_BOARD(6, "二维码立牌"),
|
||||
|
||||
ROYALPAY_POS(7,"Royalpay POS"),
|
||||
|
||||
CASHIER_POS(8,"收银系统"),
|
||||
|
||||
IPOS(9,"ipos"),
|
||||
|
||||
POSPAL(10,"pospal"),
|
||||
|
||||
AUPOS(11,"aupos"),
|
||||
|
||||
OTHER(12,"other"),
|
||||
|
||||
VENDING_MACHINE(13,"无人售货机");
|
||||
|
||||
private final int scenarioTypeId;
|
||||
private final String desc;
|
||||
|
||||
public int getScenarioTypeId() {
|
||||
return scenarioTypeId;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
paymentScenarioEnum(int scenarioTypeId, String desc) {
|
||||
this.scenarioTypeId = scenarioTypeId;
|
||||
this.desc = desc;
|
||||
}
|
||||
}
|
@ -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,44 @@
|
||||
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 cn.yixblog.platform.http.HttpRequestResult;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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 {
|
||||
private Logger logger = LoggerFactory.getLogger(getClass());
|
||||
|
||||
@Value("${app.cms.host}")
|
||||
private String cmsHost;
|
||||
|
||||
@Override
|
||||
public void updatePoster(String imgUrl) {
|
||||
String url = cmsHost + "/api/statistics/count";
|
||||
HttpRequestGenerator htg = new HttpRequestGenerator(url, RequestMethod.PUT);
|
||||
try {
|
||||
HttpRequestResult result = htg.addQueryString("imgUrl", imgUrl).execute();
|
||||
if (result.isSuccess()) {
|
||||
int statusCode = result.getStatusCode();
|
||||
if (statusCode == 200) {
|
||||
logger.info("CMS request succeeded");
|
||||
}
|
||||
}
|
||||
} 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"));
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
<section class="content-header">
|
||||
<h1>批量支付宝线上报备</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<i class="fa fa-cog"></i> Basic Config
|
||||
</li>
|
||||
<li><a ui-sref="^">Dev Tools</a></li>
|
||||
<li class="active">批量支付宝线上报备</li>
|
||||
</ol>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="box">
|
||||
<button class="btn btn-primary" ng-click="registerOnlineGMS()">register Online</button> <label ng-hide="selecttotal" style="padding-left: 30px">请稍后</label>
|
||||
</div>
|
||||
<div class="box">
|
||||
<button class="btn btn-primary" ng-click="getLessPartnerInfo()">缺少信息的商户(online)</button>
|
||||
</div>
|
||||
<div class="box">
|
||||
<button class="btn btn-primary" ng-click="registerGMS()">register offline</button> <label ng-hide="selecttotal" style="padding-left: 30px">请稍后</label>
|
||||
</div>
|
||||
<div class="row" ng-if="need_register_merchant">
|
||||
<span>需要报备的商户编码</span><p ng-bind="need_register_merchant"></p>
|
||||
</div>
|
||||
<div class="row" ng-if="success_register_merchant">
|
||||
<span>成功报备的商户编码</span><p ng-bind="success_register_merchant"></p>
|
||||
</div>
|
||||
<div class="box-body table-responsive" ng-if="fail_register_merchant">
|
||||
<span>注册失败的商户编码</span>
|
||||
<table class="table table-bordered table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>client_moniker</th>
|
||||
<th>失败原因</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="client in fail_register_merchant">
|
||||
<td>
|
||||
{{client.client_moniker}}
|
||||
</td>
|
||||
<td ng-bind="client.return_msg"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
@ -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"
|
||||
}
|
||||
]
|
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 2.3 KiB |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,45 @@
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="box-solid">
|
||||
<!--渠道方行业信息-->
|
||||
<div class="box-body col-sm-6" ng-repeat="good in mcc_goods">
|
||||
<ul class="list-group ui_desk">
|
||||
<li class="list-group-item list-group-item-info"
|
||||
style="height: 60px;text-align: center;display: block;">
|
||||
<span>
|
||||
<img ng-if="good.channel=='Wechat'" src="/static/images/wechatpay_sign_lg.png"
|
||||
class="channel-icon-mid">
|
||||
<img ng-if="good.channel=='Alipay'" src="/static/images/alipay_sign_lg.png"
|
||||
class="channel-icon-mid">
|
||||
<img ng-if="good.channel=='AlipayOnline'" src="/static/images/alipay_sign_lg.png"
|
||||
class="channel-icon-mid">
|
||||
<img ng-if="good.channel=='Bestpay'" src="/static/images/bestpay_sign_lg.png"
|
||||
class="channel-icon-mid">
|
||||
<img ng-if="good.channel=='jd'" src="/static/images/jd_sign_lg.png"
|
||||
class="channel-icon-mid">
|
||||
</span>
|
||||
</li>
|
||||
<li class="list-group-item list-group-item-text" style="height: 60px;">
|
||||
商品
|
||||
<select style="float: right;width: 50%;" ng-model="good.mc_code" id="wmi-select" name="wmi"
|
||||
class="form-control"
|
||||
ng-options="wmi.value as wmi.label for wmi in wechatMccIndustries" ng-change="updateMccInfo(good)">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</li>
|
||||
<li class="list-group-item list-group-item-text">
|
||||
创建时间
|
||||
<span style="float: right" ng-bind="good.creation_date"></span>
|
||||
</li>
|
||||
<li class="list-group-item list-group-item-text">
|
||||
操作人
|
||||
<span style="float: right" ng-bind="good.creation_by"></span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in new issue