jingcai-php/app/Model/Config.php

145 lines
2.7 KiB
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
namespace App\Model;
/**
* 配置信息
*/
class Config
{
/**
* 每注价格
* @return int
*/
public static function lotteryUnitPrice()
{
return 2;
}
/**
* 发单时最低购买金额
* @return int
*/
public static function faDanMinMoney()
{
return 100;
}
/**
* 每个店铺可以设置代理人数的上限
* @return int
*/
public static function agentMaxNum()
{
return 100;
}
/**
* 每张票允许的最大倍数
* @return int
*/
public static function piaoMaxBetsNum()
{
return 50;
}
/**
* 平台出票服务费(lv)
* @return float
*/
public static function platformFeeLv()
{
return 0.004;
}
/**
* 跟单人中奖后,总佣金(lv)
* @return float
*/
public static function fadanAllFeeLv() {
return 0.1;
}
/**
* 发单人提取发单佣金的比例(lv)
* @return float
*/
public static function fadanUserFeeLv() {
return 0.6;
}
/**
* 发单人店铺提取发单佣金的比例(lv)
* @return float
*/
public static function fadanShopFeeLv() {
return 0.2;
}
/**
* 任选9场等固定奖金获取税后奖金
* @param $prize
* @return float|int
*/
public static function getAfterTaxPrize($prize) {
if ($prize > 10000) {
return $prize * 0.8;
}
return $prize;
}
/**
* 单注奖金超过1万获取税后奖金
* @param $prize
* @param $oneZhuPrize
* @return float|int
*/
public static function getAfterTaxPrizeIfOne($prize, $oneZhuPrize)
{
if ($oneZhuPrize > 10000) {
return $prize * 0.8;
}
return $prize;
}
public static function defaultPassword() {
return '123456';
}
public static function defaultPayPassword() {
return 'zcl888';
}
/**
* 店铺充值后,可以提现比例 70%
* @return float
*/
public static function getShopRechargeWithdrawLv() {
return 0.7;
}
/**
* 店铺一次提现最大金额
* @return int
*/
public static function shopWithdrawMax() {
return 10000;
}
public static function bjdcPrizePercent() {
return 0.65;
}
public static function faDanVisibleDate() {
return date('Ymd', strtotime('-15 day'));
}
/**
* 保留多少天
* @return false|string
*/
public static function keepDataDate() {
return date('Y-m-d H:i:s', strtotime('-45 day'));
}
}