master
wangxinglong 2022-03-25 17:27:18 +08:00
parent 5ac15caa86
commit 848bcf2801
1 changed files with 8 additions and 2 deletions

View File

@ -859,13 +859,19 @@ class Coupon extends Base
} }
Db::commit(); Db::commit();
return $this->json(); return $this->json(
0,
"优惠券签到使用成功,您获得{$consumerMoney}元红包,已存入您的零钱",
[
"redpack" =>$consumerMoney,
"user_coupon_id" =>$couponId,
]);
}catch (RepositoryException $e){ }catch (RepositoryException $e){
Db::rollback(); Db::rollback();
return $this->json(5001, "Repository服务器错误"); return $this->json(5001, "Repository服务器错误");
}catch (\Exception $e){ }catch (\Exception $e){
echo $e->getMessage(); Log::error('核销优惠券失败:'.$e->getMessage());
Db::rollback(); Db::rollback();
return $this->json(5002, "服务器错误"); return $this->json(5002, "服务器错误");
} }