Forráskód Böngészése

改成线上和收款码并行

lizhen_gitee 2 éve
szülő
commit
7c9f9cd224
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      application/api/controller/Order.php

+ 2 - 1
application/api/controller/Order.php

@@ -141,7 +141,8 @@ class order extends Api
     }
 
     public function pay_qrcode(){
-        $info = Db::name('pay_qrcode')->where('is_show',1)->orderRaw('rand()')->find();
+        $id = input('id',0,'intval');
+        $info = Db::name('pay_qrcode')->where('is_show',1)->where('id != '.$id)->orderRaw('rand()')->find();
         $info = info_domain_image($info,['image']);
 
         $this->success(1,$info);