|
|
|
@ -69,9 +69,12 @@ class LanzuUserBalance extends Model |
|
|
|
/** |
|
|
|
* 校验是否在足够的可提现金额 |
|
|
|
*/ |
|
|
|
public static function checkBalance($aduid,$money) |
|
|
|
public static function checkBalance($aduid,$money,$type) |
|
|
|
{ |
|
|
|
return self::where('source_id',$aduid)->where('balance','>=',$money)->count(); |
|
|
|
return self::where('source_id',$aduid) |
|
|
|
->where('balance','>=',$money) |
|
|
|
->where('user_type',$type) |
|
|
|
->count(); |
|
|
|
} |
|
|
|
|
|
|
|
} |