Kirin 2 years ago
parent
commit
341ecd4d44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/api/controller/user/UserStoreController.php

+ 1 - 1
app/api/controller/user/UserStoreController.php

@@ -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('门店不存在');