修改支付

This commit is contained in:
邹景立 2021-03-16 17:05:16 +08:00
parent 1ab217d983
commit b20bf24b1b
2 changed files with 11 additions and 3 deletions

View File

@ -21,6 +21,14 @@ class UserTransfer extends Controller
*/
private $table = 'DataUserTransfer';
protected $types = [
'wechat_user' => '转账到我的微信零钱',
'wechat_qrcode' => '线下转账微信收款码',
'alipay_qrcode' => '线下转账支付宝收款码',
'alipay_account' => '线下到账到支付宝账户',
'bank_offline' => '线下转账到银行卡账户',
];
/**
* 提现配置配置
* @throws \think\db\exception\DataNotFoundException

View File

@ -122,10 +122,10 @@ class UserUpgradeService extends Service
// 开始处理等级
[$vipName, $vipCode] = ['普通用户', 0];
// 统计历史数据
$teamsDirect = $this->app->db->name('DataUser')->where(['pid1' => $uid])->where('vip_code>0')->count();
$teamsIndirect = $this->app->db->name('DataUser')->where(['pid2' => $uid])->where('vip_code>0')->count();
$teamsUsers = $this->app->db->name('DataUser')->where(['pid1|pid2' => $uid])->where('vip_code>0')->count();
$orderAmount = $this->app->db->name('ShopOrder')->where("uid={$uid} and status>=4")->sum('amount_total');
$teamsDirect = $this->app->db->name('DataUser')->where(['pid1' => $uid])->whereRaw('vip_code>0')->count();
$teamsIndirect = $this->app->db->name('DataUser')->where(['pid2' => $uid])->whereRaw('vip_code>0')->count();
$teamsUsers = $this->app->db->name('DataUser')->where(['pid1|pid2' => $uid])->whereRaw('vip_code>0')->count();
// 计算用户等级
foreach ($this->app->db->name('DataUserUpgrade')->where(['status' => 1])->order('number desc')->cursor() as $item) {
$l1 = empty($item['goods_vip_status']) || $user['buy_vip_entry'] > 0;