平台币充值 线下支付凭证唯一验证

master
zhengchanglong 5 years ago
parent af8a0e3e2d
commit 4c5e803a8a

@ -136,7 +136,14 @@ class CoinOrderController extends BaseController
if($pay_order_number==''){ if($pay_order_number==''){
$this->ajaxReturn(['status'=>0,'info'=>'请输入支付凭证','time'=>1000],"JSON"); $this->ajaxReturn(['status'=>0,'info'=>'请输入支付凭证','time'=>1000],"JSON");
} }
$is_order = M("coin_pay_order","tab_")
->where(
array('pay_order_number'=>$pay_order_number,
'is_del'=>0
))->find();
if($is_order){
$this->ajaxReturn(['status'=>0,'info'=>'系统已存在支付凭证,请核实~','time'=>1000],"JSON");
}
//$res = $this->upload(); //$res = $this->upload();
$res = $this->uploadPicture(); $res = $this->uploadPicture();
if($res['status']==0){ if($res['status']==0){

Loading…
Cancel
Save