增加后台佣金余额、提现佣金字段
This commit is contained in:
parent
6cb8a607fe
commit
22dbe366df
@ -67,7 +67,7 @@ class UserExtractRepository extends BaseRepository
|
|||||||
public function getList(array $where, $page, $limit)
|
public function getList(array $where, $page, $limit)
|
||||||
{
|
{
|
||||||
$query = $this->dao->search($where)->with(['user' => function ($query) {
|
$query = $this->dao->search($where)->with(['user' => function ($query) {
|
||||||
$query->field('uid,avatar,nickname');
|
$query->field('uid,avatar,nickname,brokerage_price,now_money');
|
||||||
}]);
|
}]);
|
||||||
$count = $query->count();
|
$count = $query->count();
|
||||||
$list = $query->page($page, $limit)->select();
|
$list = $query->page($page, $limit)->select();
|
||||||
@ -101,6 +101,7 @@ class UserExtractRepository extends BaseRepository
|
|||||||
{
|
{
|
||||||
event('user.extract.before',compact('user','data'));
|
event('user.extract.before',compact('user','data'));
|
||||||
$userExtract = Db::transaction(function()use($user,$data){
|
$userExtract = Db::transaction(function()use($user,$data){
|
||||||
|
|
||||||
if($user['brokerage_price'] < (systemConfig('user_extract_min')))
|
if($user['brokerage_price'] < (systemConfig('user_extract_min')))
|
||||||
throw new ValidateException('可提现金额不足');
|
throw new ValidateException('可提现金额不足');
|
||||||
if($data['extract_price'] < (systemConfig('user_extract_min')))
|
if($data['extract_price'] < (systemConfig('user_extract_min')))
|
||||||
|
@ -59,6 +59,7 @@ class StoreBrandCategory extends BaseController
|
|||||||
public function create(validate $validate)
|
public function create(validate $validate)
|
||||||
{
|
{
|
||||||
$data = $this->checkParams($validate);
|
$data = $this->checkParams($validate);
|
||||||
|
|
||||||
if ($data['pid'] && !$this->repository->merExists($this->request->merId(), $data['pid']))
|
if ($data['pid'] && !$this->repository->merExists($this->request->merId(), $data['pid']))
|
||||||
return app('json')->fail('上级分类不存在');
|
return app('json')->fail('上级分类不存在');
|
||||||
if ($data['pid'] && !$this->repository->checkLevel($data['pid']))
|
if ($data['pid'] && !$this->repository->checkLevel($data['pid']))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user