master
wangxinglong 2021-12-20 14:25:02 +08:00
parent 9f5ca16402
commit 378c950f28
1 changed files with 3 additions and 2 deletions

View File

@ -146,7 +146,7 @@ class Coupon extends Base
} }
/** /**
* 我的优惠卷列表 指定商家 * 我的优惠卷列表 指定商家 未验证
* *
*/ */
public function getCouponListByBusinessCode() public function getCouponListByBusinessCode()
@ -176,6 +176,7 @@ class Coupon extends Base
$whereMap[] = ['consumer_code', '=', $accountCode]; $whereMap[] = ['consumer_code', '=', $accountCode];
$whereMap[] = ['business_code', '=', $businessCode]; $whereMap[] = ['business_code', '=', $businessCode];
$whereMap[] = ['is_verificated', '=', CouponModel::is_verificated_off];
$sortOrder = ['sort_weight' => 'desc', 'end_time' => 'asc']; $sortOrder = ['sort_weight' => 'desc', 'end_time' => 'asc'];
$res = CouponRepository::getInstance()->findList($whereMap, $fields, $page, $size,function ($q){ $res = CouponRepository::getInstance()->findList($whereMap, $fields, $page, $size,function ($q){
@ -441,7 +442,7 @@ class Coupon extends Base
//企业付款成功 //企业付款成功
if(isset($result["status"]) && $result["status"]=="SUCCESS"){ if(isset($result["status"]) && $result["status"]=="SUCCESS"){
Db::commit(); Db::commit();
return $this->json(); return $this->json(0,"优惠券签到使用成功,您获得{$consumerMoney}元红包,已存入您的零钱");
} }
Log::info("查询企业付款失败:".json_encode($result,JSON_UNESCAPED_UNICODE)); Log::info("查询企业付款失败:".json_encode($result,JSON_UNESCAPED_UNICODE));
}else{ }else{