Browse Source
Merge branch 'coupon_rebate' of http://120.24.33.109:11081/hyzjshwo/lanzu_api_hyperf into coupon_rebate
master
Merge branch 'coupon_rebate' of http://120.24.33.109:11081/hyzjshwo/lanzu_api_hyperf into coupon_rebate
master
4 changed files with 44 additions and 11 deletions
-
3app/Request/CouponRebateReceiveRequest.php
-
25app/Service/CommonService.php
-
21app/Service/CouponRebateService.php
-
6app/Service/CouponService.php
@ -0,0 +1,25 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Service; |
||||
|
|
||||
|
class CommonService |
||||
|
{ |
||||
|
|
||||
|
/** |
||||
|
* 请求参数判空 |
||||
|
* @param mixed $var 参数 |
||||
|
*/ |
||||
|
public function empty($var) |
||||
|
{ |
||||
|
return ! ( |
||||
|
isset($var) |
||||
|
&& $var |
||||
|
&& !empty($var) |
||||
|
&& !is_null($var) |
||||
|
&& $var != 'undefined' |
||||
|
&& $var != 'unknown' |
||||
|
&& $var != 'null' |
||||
|
&& $var != 'false' |
||||
|
); |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue