作者 chencheng

0601-23

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