chore: 新增epay和cos插件相关类库及配置文件
- 新增epay v2、v3、v3new版本的支付类库及证书文件 - 新增cos云存储类库文件 - 调整文件上传保存格式为按分类存储 - 修复会员、规则、类目等语言翻译键名 - 新增小程序图标等静态资源文件
这个提交包含在:
@@ -26,16 +26,6 @@ class Master extends Backend
|
||||
$this->view->assign("verifyStatusList", $this->model->getVerifyStatusList());
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
|
||||
* 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
|
||||
* 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
|
||||
*/
|
||||
|
||||
|
||||
|
||||
protected $relationSearch = true;
|
||||
|
||||
public function index()
|
||||
@@ -56,4 +46,43 @@ class Master extends Backend
|
||||
$result = ['total' => $list->total(), 'rows' => $list->items()];
|
||||
return json($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 师傅全景档案画像
|
||||
*/
|
||||
public function detail($ids = null)
|
||||
{
|
||||
$row = $this->model->with(['user'])->find($ids);
|
||||
if (!$row) {
|
||||
$this->error(__('No Results were found'));
|
||||
}
|
||||
|
||||
// 1. 最近接单记录
|
||||
$recentOrders = \think\Db::name('order')
|
||||
->where('master_id', $row['id'])
|
||||
->order('id desc')
|
||||
->limit(6)
|
||||
->select();
|
||||
|
||||
// 2. 提现流水
|
||||
$recentWithdraws = \think\Db::name('withdraw')
|
||||
->where('master_id', $row['id'])
|
||||
->order('id desc')
|
||||
->limit(5)
|
||||
->select();
|
||||
|
||||
// 3. 服务好评记录
|
||||
$recentReviews = \think\Db::name('review')
|
||||
->where('master_id', $row['id'])
|
||||
->order('id desc')
|
||||
->limit(5)
|
||||
->select();
|
||||
|
||||
$this->view->assign('row', $row);
|
||||
$this->view->assign('recentOrders', $recentOrders);
|
||||
$this->view->assign('recentWithdraws', $recentWithdraws);
|
||||
$this->view->assign('recentReviews', $recentReviews);
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户