|
...
|
...
|
@@ -4,6 +4,7 @@ namespace App\Http\Logic\Bside\HomeCount; |
|
|
|
|
|
|
|
|
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\EnterpriseService\EnterpriseService as EnterpriseServiceModel;
|
|
|
|
use App\Models\HomeCount\Count;
|
|
|
|
use App\Models\RankData\RankData as RankDataModel;
|
|
|
|
use Carbon\Carbon;
|
|
...
|
...
|
@@ -57,13 +58,13 @@ class CountLogic extends BaseLogic |
|
|
|
* @method :post
|
|
|
|
* @time :2023/5/24 13:33
|
|
|
|
*/
|
|
|
|
public function total_count($inquiry_num){
|
|
|
|
public function total_count($inquiry_num = ''){
|
|
|
|
$pv = DB::table('gl_customer_visit_item')->where(['domain'=>$this->project['deploy_build']['test_domain']])->count();
|
|
|
|
$ip = DB::table('gl_customer_visit')->where(['domain'=>$this->project['deploy_build']['test_domain']])->count();
|
|
|
|
$data = [
|
|
|
|
'total_pv'=>$pv,
|
|
|
|
'total_ip'=>$ip,
|
|
|
|
'conversion_rate' => ($inquiry_num / $ip) * 100,
|
|
|
|
'conversion_rate' => isset($inquiry_num) ? ($inquiry_num / $ip) * 100 : 0,
|
|
|
|
];
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
...
|
...
|
@@ -174,4 +175,16 @@ class CountLogic extends BaseLogic |
|
|
|
}
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name :(售后服务中心)enterprise_service
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/5/25 10:22
|
|
|
|
*/
|
|
|
|
public function enterprise_service(){
|
|
|
|
$enterpriseServiceModel = new EnterpriseServiceModel();
|
|
|
|
$info = $enterpriseServiceModel->read(['status'=>0]);
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|