فهرست منبع

去掉album表的查询

visuddhinanda 4 سال پیش
والد
کامیت
e9c89b7dd9
1فایلهای تغییر یافته به همراه4 افزوده شده و 20 حذف شده
  1. 4 20
      app/studio/project.php

+ 4 - 20
app/studio/project.php

@@ -110,16 +110,8 @@ switch ($op) {
                 $language = $res[$iRes]->language;
                 $author = $res[$iRes]->author;
 
-                PDO_Connect(_FILE_DB_RESRES_INDEX_);
-                $query = "select guid,owner from 'album' where id='{$res_album_id}'";
-                $Fetch = PDO_FetchAll($query);
-                if (count($Fetch) > 0) {
-                    $res_album_guid = $Fetch[0]["guid"];
-                    $res_album_owner = $Fetch[0]["owner"];
-                } else {
-                    $res_album_guid = UUID::v4();
-                    $res_album_owner = 0;
-                }
+                $res_album_guid = UUID::v4();
+                $res_album_owner = 0;
 
                 switch ($get_res_type) {
                     case "6": //逐词译模板
@@ -452,16 +444,8 @@ switch ($op) {
                 $language = $res[$iRes]->language;
                 $author = $res[$iRes]->author;
 
-                PDO_Connect(_FILE_DB_RESRES_INDEX_);
-                $query = "select guid,owner from 'album' where id='{$res_album_id}'";
-                $Fetch = PDO_FetchAll($query);
-                if (count($Fetch) > 0) {
-                    $res_album_guid = $Fetch[0]["guid"];
-                    $res_album_owner = $Fetch[0]["owner"];
-                } else {
-                    $res_album_guid = UUID::v4();
-                    $res_album_owner = 0;
-                }
+                $res_album_guid = UUID::v4();
+                $res_album_owner = 0;
 
                 switch ($get_res_type) {
                     case "1": //pali text