|
@@ -34,7 +34,7 @@ class Member extends Controller
|
|
|
protected $table = 'q_user';
|
|
|
|
|
|
/**
|
|
|
- * 会员信息管理
|
|
|
+ * 会员信息列表
|
|
|
* @auth true
|
|
|
* @menu true
|
|
|
* @throws \think\Exception
|
|
@@ -58,7 +58,7 @@ class Member extends Controller
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 订单列表处理
|
|
|
+ * 列表处理
|
|
|
* @param array $data
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
@@ -214,55 +214,6 @@ class Member extends Controller
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 更新设计师收益百分比
|
|
|
- * @auth true
|
|
|
- * @throws \think\Exception
|
|
|
- * @throws \think\db\exception\DataNotFoundException
|
|
|
- * @throws \think\db\exception\ModelNotFoundException
|
|
|
- * @throws \think\exception\DbException
|
|
|
- * @throws \think\exception\PDOException
|
|
|
- */
|
|
|
- public function earnings_ratio()
|
|
|
- {
|
|
|
- $id = $this->app->request->get('id');
|
|
|
- $this->assign('id',$id);
|
|
|
- $price = $this->app->request->get('earnings_ratio');
|
|
|
- $this->assign('price',$price);
|
|
|
- $post = $this->app->request->post();
|
|
|
- if (isset($post['id']) && $post['id']){
|
|
|
- Db::name($this->table)->where('id',$post['id'])->update(['earnings_ratio'=>$post['price']]);
|
|
|
- $this->success('设置成功!');
|
|
|
- }else{
|
|
|
- $this->fetch('form3');
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 更新设计师加班费
|
|
|
- * @auth true
|
|
|
- * @throws \think\Exception
|
|
|
- * @throws \think\db\exception\DataNotFoundException
|
|
|
- * @throws \think\db\exception\ModelNotFoundException
|
|
|
- * @throws \think\exception\DbException
|
|
|
- * @throws \think\exception\PDOException
|
|
|
- */
|
|
|
- public function overtime_pay()
|
|
|
- {
|
|
|
- $id = $this->app->request->get('id');
|
|
|
- $this->assign('id',$id);
|
|
|
- $price = $this->app->request->get('overtime_pay');
|
|
|
- $this->assign('price',$price);
|
|
|
- $post = $this->app->request->post();
|
|
|
- if (isset($post['id']) && $post['id']){
|
|
|
- Db::name($this->table)->where('id',$post['id'])->update(['overtime_pay'=>$post['price']]);
|
|
|
- $this->success('设置成功!');
|
|
|
- }else{
|
|
|
- $this->fetch('form4');
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
* 更新用户余额
|
|
@@ -335,14 +286,5 @@ class Member extends Controller
|
|
|
}
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 软删除
|
|
|
- * @auth true
|
|
|
- * @throws \think\Exception
|
|
|
- * @throws \think\exception\PDOException
|
|
|
- */
|
|
|
- public function del()
|
|
|
- {
|
|
|
- $this->_save($this->table, ['is_del' => '0']);
|
|
|
- }
|
|
|
+
|
|
|
}
|