mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -10,7 +10,7 @@ class CouponController extends Controller | |||||||
| { | { | ||||||
|     public function check (Request $request) { |     public function check (Request $request) { | ||||||
|         if (empty($request->input('code'))) { |         if (empty($request->input('code'))) { | ||||||
|             abort(500, '参数错误'); |             abort(500, '优惠券码不能为空'); | ||||||
|         } |         } | ||||||
|         $coupon = Coupon::where('code', $request->input('code'))->first(); |         $coupon = Coupon::where('code', $request->input('code'))->first(); | ||||||
|         if (!$coupon) { |         if (!$coupon) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user