|
@@ -26,7 +26,7 @@ class UserStoreController
|
|
|
public function index(Request $request)
|
|
|
{
|
|
|
$user = $request->user();
|
|
|
- $apply = SystemStoreApply::where('uid', $request->uid())->find();
|
|
|
+ $apply = SystemStoreApply::where('uid', $request->uid())->order('id desc')->find();
|
|
|
if (!$user['user_store_id']) return app('json')->success('ok', compact('apply'));
|
|
|
$store_info = SystemStore::where('id', $user['user_store_id'])->find();
|
|
|
if (!$store_info) return app('json')->fail('门店不存在');
|