www
Showing
2 changed files
with
7 additions
and
5 deletions
| ... | @@ -112,8 +112,10 @@ public function isGoogleFolderCreated($cust_id) | ... | @@ -112,8 +112,10 @@ public function isGoogleFolderCreated($cust_id) |
| 112 | if(count($saveFolderId) < 1){ | 112 | if(count($saveFolderId) < 1){ |
| 113 | 113 | ||
| 114 | $newgroup_id = $this->createFolderGoogle($cust_ids); | 114 | $newgroup_id = $this->createFolderGoogle($cust_ids); |
| 115 | |||
| 115 | $saveFolderId = new pdfModel(); | 116 | $saveFolderId = new pdfModel(); |
| 116 | $saveFolderId = $saveFolderId->checkIsGoogleFolderCreated($newgroup_id[0]->group_id); | 117 | $saveFolderId = $saveFolderId->checkIsGoogleFolderCreated($group_id); |
| 118 | error_log(print_r($saveFolderId, true)); | ||
| 117 | return $saveFolderId; | 119 | return $saveFolderId; |
| 118 | }else{ | 120 | }else{ |
| 119 | 121 | ||
| ... | @@ -184,7 +186,7 @@ public function isGoogleFolderCreated($cust_id) | ... | @@ -184,7 +186,7 @@ public function isGoogleFolderCreated($cust_id) |
| 184 | } | 186 | } |
| 185 | 187 | ||
| 186 | 188 | ||
| 187 | 189 | return $createdFile->id; | |
| 188 | 190 | ||
| 189 | 191 | ||
| 190 | 192 | ... | ... |
| ... | @@ -32,7 +32,7 @@ class pdfModel extends Model | ... | @@ -32,7 +32,7 @@ class pdfModel extends Model |
| 32 | 32 | ||
| 33 | 33 | ||
| 34 | $rows = DB::table('googleFolderIds')->select('*')->where('googleFolderIds.group_id','=', $id)->get(); | 34 | $rows = DB::table('googleFolderIds')->select('*')->where('googleFolderIds.group_id','=', $id)->get(); |
| 35 | 35 | error_log(print_r($rows, true)); | |
| 36 | return $rows; | 36 | return $rows; |
| 37 | } | 37 | } |
| 38 | 38 | ||
| ... | @@ -41,9 +41,9 @@ class pdfModel extends Model | ... | @@ -41,9 +41,9 @@ class pdfModel extends Model |
| 41 | $folderId = DB::table('googleFolderIds')->insertGetId( | 41 | $folderId = DB::table('googleFolderIds')->insertGetId( |
| 42 | array('group_id' => $group_id, 'folder_id' => $folderId, 'subfolder_id' => $createdFile) | 42 | array('group_id' => $group_id, 'folder_id' => $folderId, 'subfolder_id' => $createdFile) |
| 43 | ); | 43 | ); |
| 44 | $rows = DB::table('googleFolderIds')->select('*')->where('googleFolderIds.id','=', $folderId )->get(); | ||
| 45 | 44 | ||
| 46 | return $rows ; | 45 | |
| 46 | return $folderId ; | ||
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | 49 | ... | ... |
-
Please register or sign in to post a comment