|
@@ -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);
|