...
|
...
|
@@ -503,8 +503,8 @@ class Wechat extends Api |
|
|
$save['verification_store_id'] = $v['verification_store_id'];
|
|
|
$save['user_id'] = $pid;
|
|
|
//用户是否已经领取该门店的券
|
|
|
$r = Db::name('verification_receive')->where($save)->find();
|
|
|
if(empty($r)){
|
|
|
//$r = Db::name('verification_receive')->where($save)->find();
|
|
|
//if(empty($r)){
|
|
|
$save['type'] = 0;//使用情况
|
|
|
$save['closetime'] = $v['closetime'];
|
|
|
$save['receive_no'] = $time.uniqid();
|
...
|
...
|
@@ -514,7 +514,7 @@ class Wechat extends Api |
|
|
$save['verification_order_id'] = $order_id;
|
|
|
$save['coupon_type'] = $v['type'];
|
|
|
Db::name('verification_receive')->insert($save);
|
|
|
}
|
|
|
//}
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|