Browse Source

Update ItemController.class.php

star7th 6 years ago
parent
commit
e7e8894ce2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/Application/Api/Controller/ItemController.class.php

+ 1 - 1
server/Application/Api/Controller/ItemController.class.php

@@ -590,7 +590,7 @@ class ItemController extends BaseController {
         $login_user = $this->checkLogin();
 
         $data = I("data");
-
+        D("ItemSort")->where(" uid = '$login_user[uid]' ")->delete();
         $ret = D("ItemSort")->add(array("item_sort_data"=>$data,"uid"=>$login_user['uid'],"addtime"=>time()),array(),true);
 
         if ($ret) {