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)); }