From 9f5ca16402745cf935ee051c854fa0b7552cf737 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Mon, 20 Dec 2021 14:12:58 +0800 Subject: [PATCH] settter --- app/controller/api/Coupon.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index abe3d79..d3ccd13 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -404,6 +404,7 @@ class Coupon extends Base "consumer_money" => $consumerMoney, "lat" => $lat, "lng" => $lng, + "create_time" => date("Y-m-d H:i:s" ,$time), ]; $couponBill = CouponBill::create($couponBillData); @@ -459,7 +460,7 @@ class Coupon extends Base //付款成功才提交!!!!!伪装成功 if(isset($result['payment_no']) || true ){ Db::commit(); - return $this->json(); + return $this->json(0,"优惠券签到使用成功,您获得{$consumerMoney}元红包,已存入您的零钱"); } Log::info("企业发起付款失败:" . json_encode($result,JSON_UNESCAPED_UNICODE)); }