|
@@ -310,9 +310,11 @@ class Authcompany
|
|
|
|
|
|
//追加
|
|
//追加
|
|
$userinfo['company']['image'] = one_domain_image($userinfo['company']['image']);
|
|
$userinfo['company']['image'] = one_domain_image($userinfo['company']['image']);
|
|
- $userinfo['money'] = model('walletcompany')->getWallet($this->company_id,'money');
|
|
|
|
|
|
+ $userinfo['money'] = model('walletcompany')->getWallet($this->company_id,'money'); //可提现金额
|
|
|
|
+ $userinfo['dongjie_money'] = Db::name('order')->where('company_id',$this->company_id)->where('status',2)->where('ordertype',3)->sum('pay_fee');//冻结金额,即出售的套餐,但没使用的
|
|
|
|
+ $userinfo['all_money'] = bcadd($userinfo['money'],$userinfo['dongjie_money'],2);
|
|
|
|
|
|
-/////////////////////////////////////
|
|
|
|
|
|
+ /////////////////////////////////////
|
|
//个人信息
|
|
//个人信息
|
|
$strattime = strtotime(date('Y-m-d'));
|
|
$strattime = strtotime(date('Y-m-d'));
|
|
$endtime = $strattime + 86399;
|
|
$endtime = $strattime + 86399;
|
|
@@ -322,7 +324,7 @@ class Authcompany
|
|
//今日开单
|
|
//今日开单
|
|
$map = [
|
|
$map = [
|
|
'company_id' => $this->company_id,
|
|
'company_id' => $this->company_id,
|
|
- 'finishtime' => ['BETWEEN',[$strattime,$endtime]], //开单时间用完成时间
|
|
|
|
|
|
+ 'finish_time' => ['BETWEEN',[$strattime,$endtime]], //开单时间用完成时间
|
|
'status' => 3,
|
|
'status' => 3,
|
|
];
|
|
];
|
|
if($this->type == 2){
|
|
if($this->type == 2){
|