parent
89c10f9cc6
commit
69e4220698
@ -0,0 +1,25 @@
|
||||
package au.com.royalpay.payment.manage.ofei.web;
|
||||
|
||||
import au.com.royalpay.payment.manage.ofei.core.OfeiClient;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* Created by wangning on 2017/12/8.
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/phone_top_up")
|
||||
public class PhoneTopUpController {
|
||||
@Resource
|
||||
private OfeiClient ofeiClient;
|
||||
|
||||
@RequestMapping(value = "/recharge",method = {RequestMethod.GET, RequestMethod.POST})
|
||||
public void listNotices(@RequestParam String phoneNumber, @RequestParam String amount) {
|
||||
ofeiClient.phoneTopUp(amount,true,null,phoneNumber);
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
<section class="content-header">
|
||||
<h1>Phone Top Up</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">phone top up</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="box-solid">
|
||||
<div class="box box-warning">
|
||||
<div class="box-header">
|
||||
<form role="form" style="margin:0px auto;width: 50%">
|
||||
<div class="form-group">
|
||||
<label>Phone Number</label>
|
||||
<input ng-model="params.phoneNumber" name="code" class="form-control" type="text"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Amount</label>
|
||||
<input ng-model="params.amount" class="form-control" type="text" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary btn-block" ng-click="topUp()">commit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in new issue