|
|
@@ -637,10 +637,9 @@ class User extends BaseController
|
|
|
* @author xaboy
|
|
|
* @day 2020-05-07
|
|
|
*/
|
|
|
- public function changeIntegral($id, UserNowMoneyValidate $validate)
|
|
|
+ public function changeIntegral($id)
|
|
|
{
|
|
|
$data = $this->request->params(['now_money', 'type']);
|
|
|
- $validate->check($data);
|
|
|
if (!$this->repository->exists($id))
|
|
|
return app('json')->fail('数据不存在');
|
|
|
$this->repository->changeIntegral($id, $this->request->adminId(), $data['type'], $data['now_money']);
|