作者 景龙
1 个管道 的构建 失败 耗费 0 秒

修改不重复绑定银行卡

@@ -231,6 +231,10 @@ class Person extends Api @@ -231,6 +231,10 @@ class Person extends Api
231 $this->error($validate->getError()); 231 $this->error($validate->getError());
232 } 232 }
233 $bank = new Bank(); 233 $bank = new Bank();
  234 + $data = $bank->where(['uid'=>$this->user_id,'bank_num'=>$bank_num])->find();
  235 + if($data){
  236 + $this->error('不能重复绑定');
  237 + }
234 $data = $bank::create(['uid'=>$this->user_id,'bank_num'=>$bank_num,'open_bank'=>$open_bank]); 238 $data = $bank::create(['uid'=>$this->user_id,'bank_num'=>$bank_num,'open_bank'=>$open_bank]);
235 if($data){ 239 if($data){
236 $this->success('保存成功'); 240 $this->success('保存成功');
@@ -126,7 +126,7 @@ class Wxpay extends Api @@ -126,7 +126,7 @@ class Wxpay extends Api
126 } 126 }
127 127
128 /** 128 /**
129 - * 微信异步通知 129 + * 微信异步通知(不需调用)
130 */ 130 */
131 public function notify(){ 131 public function notify(){
132 $pay = Pay::wechat(Service::getConfig('wechat')); 132 $pay = Pay::wechat(Service::getConfig('wechat'));
@@ -187,7 +187,7 @@ class Wxpay extends Api @@ -187,7 +187,7 @@ class Wxpay extends Api
187 } 187 }
188 188
189 /** 189 /**
190 - * 微信异步通知 190 + * 微信异步通知(不需调用)
191 */ 191 */
192 public function notifyCharge(){ 192 public function notifyCharge(){
193 $pay = Pay::wechat(Service::getConfig('wechat')); 193 $pay = Pay::wechat(Service::getConfig('wechat'));
@@ -245,7 +245,7 @@ class Wxpay extends Api @@ -245,7 +245,7 @@ class Wxpay extends Api
245 } 245 }
246 246
247 /** 247 /**
248 - * 支付完成处理库存,购物车 248 + * 支付完成处理库存,购物车(不需调用)
249 * @param $pay_order_sn 249 * @param $pay_order_sn
250 * @param $openid 250 * @param $openid
251 */ 251 */
@@ -292,11 +292,11 @@ @@ -292,11 +292,11 @@
292 <div class="child collapse" id="支付接口**"> 292 <div class="child collapse" id="支付接口**">
293 <a href="javascript:;" data-id="83" class="list-group-item">支付订单</a> 293 <a href="javascript:;" data-id="83" class="list-group-item">支付订单</a>
294 <a href="javascript:;" data-id="84" class="list-group-item">商品订单去付款</a> 294 <a href="javascript:;" data-id="84" class="list-group-item">商品订单去付款</a>
295 - <a href="javascript:;" data-id="85" class="list-group-item">微信异步通知</a> 295 + <a href="javascript:;" data-id="85" class="list-group-item">微信异步通知(不需调用)</a>
296 <a href="javascript:;" data-id="86" class="list-group-item">充值</a> 296 <a href="javascript:;" data-id="86" class="list-group-item">充值</a>
297 - <a href="javascript:;" data-id="87" class="list-group-item">微信异步通知</a> 297 + <a href="javascript:;" data-id="87" class="list-group-item">微信异步通知(不需调用)</a>
298 <a href="javascript:;" data-id="88" class="list-group-item">分享购买成功调用,增加积分并获得相应的积分</a> 298 <a href="javascript:;" data-id="88" class="list-group-item">分享购买成功调用,增加积分并获得相应的积分</a>
299 - <a href="javascript:;" data-id="89" class="list-group-item">支付完成处理库存,购物车</a> 299 + <a href="javascript:;" data-id="89" class="list-group-item">支付完成处理库存,购物车(不需调用)</a>
300 </div> 300 </div>
301 </div> 301 </div>
302 </div> 302 </div>
@@ -11542,7 +11542,7 @@ @@ -11542,7 +11542,7 @@
11542 <div class="panel-heading" id="heading-85"> 11542 <div class="panel-heading" id="heading-85">
11543 <h4 class="panel-title"> 11543 <h4 class="panel-title">
11544 <span class="label label-success">GET</span> 11544 <span class="label label-success">GET</span>
11545 - <a data-toggle="collapse" data-parent="#accordion85" href="#collapseOne85"> 微信异步通知 <span class="text-muted">/api/wxpay/notify</span></a> 11545 + <a data-toggle="collapse" data-parent="#accordion85" href="#collapseOne85"> 微信异步通知(不需调用) <span class="text-muted">/api/wxpay/notify</span></a>
11546 </h4> 11546 </h4>
11547 </div> 11547 </div>
11548 <div id="collapseOne85" class="panel-collapse collapse"> 11548 <div id="collapseOne85" class="panel-collapse collapse">
@@ -11560,7 +11560,7 @@ @@ -11560,7 +11560,7 @@
11560 11560
11561 <div class="tab-pane active" id="info85"> 11561 <div class="tab-pane active" id="info85">
11562 <div class="well"> 11562 <div class="well">
11563 - 微信异步通知 </div> 11563 + 微信异步通知(不需调用) </div>
11564 <div class="panel panel-default"> 11564 <div class="panel panel-default">
11565 <div class="panel-heading"><strong>Headers</strong></div> 11565 <div class="panel-heading"><strong>Headers</strong></div>
11566 <div class="panel-body"> 11566 <div class="panel-body">
@@ -11777,7 +11777,7 @@ @@ -11777,7 +11777,7 @@
11777 <div class="panel-heading" id="heading-87"> 11777 <div class="panel-heading" id="heading-87">
11778 <h4 class="panel-title"> 11778 <h4 class="panel-title">
11779 <span class="label label-success">GET</span> 11779 <span class="label label-success">GET</span>
11780 - <a data-toggle="collapse" data-parent="#accordion87" href="#collapseOne87"> 微信异步通知 <span class="text-muted">/api/wxpay/notifyCharge</span></a> 11780 + <a data-toggle="collapse" data-parent="#accordion87" href="#collapseOne87"> 微信异步通知(不需调用) <span class="text-muted">/api/wxpay/notifyCharge</span></a>
11781 </h4> 11781 </h4>
11782 </div> 11782 </div>
11783 <div id="collapseOne87" class="panel-collapse collapse"> 11783 <div id="collapseOne87" class="panel-collapse collapse">
@@ -11795,7 +11795,7 @@ @@ -11795,7 +11795,7 @@
11795 11795
11796 <div class="tab-pane active" id="info87"> 11796 <div class="tab-pane active" id="info87">
11797 <div class="well"> 11797 <div class="well">
11798 - 微信异步通知 </div> 11798 + 微信异步通知(不需调用) </div>
11799 <div class="panel panel-default"> 11799 <div class="panel panel-default">
11800 <div class="panel-heading"><strong>Headers</strong></div> 11800 <div class="panel-heading"><strong>Headers</strong></div>
11801 <div class="panel-body"> 11801 <div class="panel-body">
@@ -12012,7 +12012,7 @@ @@ -12012,7 +12012,7 @@
12012 <div class="panel-heading" id="heading-89"> 12012 <div class="panel-heading" id="heading-89">
12013 <h4 class="panel-title"> 12013 <h4 class="panel-title">
12014 <span class="label label-success">GET</span> 12014 <span class="label label-success">GET</span>
12015 - <a data-toggle="collapse" data-parent="#accordion89" href="#collapseOne89"> 支付完成处理库存,购物车 <span class="text-muted">/api/wxpay/handle</span></a> 12015 + <a data-toggle="collapse" data-parent="#accordion89" href="#collapseOne89"> 支付完成处理库存,购物车(不需调用) <span class="text-muted">/api/wxpay/handle</span></a>
12016 </h4> 12016 </h4>
12017 </div> 12017 </div>
12018 <div id="collapseOne89" class="panel-collapse collapse"> 12018 <div id="collapseOne89" class="panel-collapse collapse">
@@ -12030,7 +12030,7 @@ @@ -12030,7 +12030,7 @@
12030 12030
12031 <div class="tab-pane active" id="info89"> 12031 <div class="tab-pane active" id="info89">
12032 <div class="well"> 12032 <div class="well">
12033 - 支付完成处理库存,购物车 </div> 12033 + 支付完成处理库存,购物车(不需调用) </div>
12034 <div class="panel panel-default"> 12034 <div class="panel panel-default">
12035 <div class="panel-heading"><strong>Headers</strong></div> 12035 <div class="panel-heading"><strong>Headers</strong></div>
12036 <div class="panel-body"> 12036 <div class="panel-body">
@@ -12134,7 +12134,7 @@ @@ -12134,7 +12134,7 @@
12134 12134
12135 <div class="row mt0 footer"> 12135 <div class="row mt0 footer">
12136 <div class="col-md-6" align="left"> 12136 <div class="col-md-6" align="left">
12137 - Generated on 2019-04-04 15:38:58 </div> 12137 + Generated on 2019-04-04 15:53:15 </div>
12138 <div class="col-md-6" align="right"> 12138 <div class="col-md-6" align="right">
12139 <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a> 12139 <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
12140 </div> 12140 </div>