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