76 lines
2.3 KiB
PHP
76 lines
2.3 KiB
PHP
<?php
|
|
/**
|
|
* SAAS应用系统 --- 十年开发经验汇集巨献!
|
|
* ==========================================================
|
|
* Copy right 2020-2050 成都众联思索科技有限公司,保留所有权利。
|
|
* ----------------------------------------------------------
|
|
* 官方网址: https://www.zoomtk.com
|
|
* 这不是自由软件!未经允许不得用于商业目或程序代码摘取及修改。
|
|
* 任何企业和个人未经允许对程序代码以任何形式任何目的再发布传播。
|
|
* 唯一发布渠道www.zoomtk.com;非官方渠道统一视为侵权行为。
|
|
* ==========================================================
|
|
*/
|
|
|
|
namespace addon\saasagent\shop\controller;
|
|
|
|
use addon\saasagent\model\SiteWebsite as SiteWebsiteModel;
|
|
|
|
class SiteWebsite extends SaasBsae{
|
|
/**
|
|
* Common: 店铺合伙人列表
|
|
* Author: wu-hui
|
|
* Time: 2023/01/29 13:37
|
|
* @return array|mixed
|
|
* @throws \think\db\exception\DbException
|
|
*/
|
|
public function list(){
|
|
// 获取列表信息
|
|
if (request()->isAjax()) return (new SiteWebsiteModel())->getSiteWebsiteList();
|
|
|
|
$this->forthMenu();
|
|
return $this->fetch('saas/partner_list');
|
|
}
|
|
/**
|
|
* Common: 添加店铺合伙人
|
|
* Author: wu-hui
|
|
* Time: 2023/01/29 13:58
|
|
* @return array|void
|
|
*/
|
|
public function add(){
|
|
if(request()->isAjax()) return (new SiteWebsiteModel())->addInfo();
|
|
}
|
|
/**
|
|
* Common: 删除店铺合伙人
|
|
* Author: wu-hui
|
|
* Time: 2023/01/29 13:41
|
|
* @return array|void
|
|
*/
|
|
public function del(){
|
|
if (request()->isAjax()) return (new SiteWebsiteModel())->del();
|
|
}
|
|
/**
|
|
* Common: 合伙人管理
|
|
* Author: wu-hui
|
|
* Time: 2023/01/29 10:23
|
|
* @return array|mixed
|
|
* @throws \think\db\exception\DbException
|
|
*/
|
|
public function management(){
|
|
if (request()->isAjax()) return (new SiteWebsiteModel())->getWebsiteList();
|
|
|
|
return $this->fetch('saas/partner_management');
|
|
}
|
|
/**
|
|
* Common: 获取总分润比例
|
|
* Author: wu-hui
|
|
* Time: 2023/01/29 14:30
|
|
* @return array
|
|
*/
|
|
public function getSumRate(){
|
|
$site_id = input('site_id', 0);
|
|
|
|
return (new SiteWebsiteModel())->getSiteSumRate($site_id);
|
|
}
|
|
|
|
|
|
} |