作者 chencheng

0601-23

... ... @@ -472,7 +472,7 @@ class Wechat extends Api
$order_info = Db::name('verification_order')->where(['id'=>$order_id])->find();
$store = Db::name('verification_store')->where(['id'=>$order_info['verification_store_id']])->find();
//获取门店下的礼品券
if(empty($store['verification_coupon_id'])){
if(!empty($store['verification_coupon_id'])){
$coupon = Db::name('verification_coupon')->where(['id'=>$store['verification_coupon_id']])->find();
//发送给pid用户
$save = [];
... ...