|
@@ -95,6 +95,22 @@ class StoreOrderController
|
|
|
else return app('json')->fail(Card::getErrorInfo('赠送失败'));
|
|
|
}
|
|
|
|
|
|
+ public function sendCardList(Request $request)
|
|
|
+ {
|
|
|
+ $uid = $request->uid();
|
|
|
+ $info = SystemStoreStaff::where('uid', $uid)->where('status', 1)->find();
|
|
|
+ if (!$info) {
|
|
|
+ return app('json')->fail('权限不足');
|
|
|
+ }
|
|
|
+ $where = UtilService::getMore(['page', 'limit', 'status']);
|
|
|
+ $where['store_id'] = $info['store_id'];
|
|
|
+ $list = Card::systemPage($where);
|
|
|
+ unset($where['page']);
|
|
|
+ unset($where['limit']);
|
|
|
+ $count = Card::where($where)->count();
|
|
|
+ return app('json')->success('ok', compact('list', 'count'));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
public function checkCard(Request $request)
|
|
|
{
|