|
|
@ -17,6 +17,8 @@ namespace app\controller\api; |
|
|
|
use app\common\repositories\store\order\StoreOrderRepository; |
|
|
|
use app\common\repositories\store\order\StoreOrderRepository; |
|
|
|
use app\common\repositories\store\order\StoreRefundOrderRepository; |
|
|
|
use app\common\repositories\store\order\StoreRefundOrderRepository; |
|
|
|
use app\common\repositories\system\notice\SystemNoticeConfigRepository; |
|
|
|
use app\common\repositories\system\notice\SystemNoticeConfigRepository; |
|
|
|
|
|
|
|
use app\common\repositories\user\UserAssetsLogRepository; |
|
|
|
|
|
|
|
use app\common\repositories\user\UserAssetsRepository; |
|
|
|
use app\common\repositories\user\UserRepository; |
|
|
|
use app\common\repositories\user\UserRepository; |
|
|
|
use app\common\repositories\user\UserSignRepository; |
|
|
|
use app\common\repositories\user\UserSignRepository; |
|
|
|
use app\common\repositories\wechat\RoutineQrcodeRepository; |
|
|
|
use app\common\repositories\wechat\RoutineQrcodeRepository; |
|
|
@ -168,9 +170,29 @@ class Auth extends BaseController |
|
|
|
Cache::set($key,true, new \DateTime($day.' 23:59:59')); |
|
|
|
Cache::set($key,true, new \DateTime($day.' 23:59:59')); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 用户资产 |
|
|
|
|
|
|
|
$assets = app(UserAssetsRepository::class)->assets($data['uid']); |
|
|
|
|
|
|
|
$data['assets'] = $assets; |
|
|
|
return app('json')->success($data); |
|
|
|
return app('json')->success($data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function assetsLog(){ |
|
|
|
|
|
|
|
$user = $this->request->userInfo(); |
|
|
|
|
|
|
|
$uid = $user->uid; |
|
|
|
|
|
|
|
$page = $this->request->param('page', 1); |
|
|
|
|
|
|
|
$limit = $this->request->param('limit', 10); |
|
|
|
|
|
|
|
$asset_type = $this->request->param('asset_type', 1); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$where = array(); |
|
|
|
|
|
|
|
$where[] = array('asset_type','=',$asset_type); |
|
|
|
|
|
|
|
$where[] = array('status','in',[UserAssetsLogRepository::STATUS_FROZEN, UserAssetsLogRepository::STATUS_SUCCESS]); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return app('json')->success(app(UserAssetsLogRepository::class)->list($uid, $where, $page, $limit)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @param UserRepository $repository |
|
|
|
* @param UserRepository $repository |
|
|
|
* @return mixed |
|
|
|
* @return mixed |
|
|
|