Advertisement
nightwind209

Untitled

Jun 28th, 2024 (edited)
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.17 KB | None | 0 0
  1. -----------------原始程式碼------------------------
  2. 行數  檔案名count_demo.php
  3. 413   public function update_tblclip($aData,$id){
  4. 414     // print_r($aData);
  5. 415     /*Array
  6. 416     (
  7. 417         [clipID] => 13521
  8. 418         [clipName] => 測試影片 第01集
  9. 419         [clipFile] => \\192.168.1.5\demo\055_01.mp4
  10. 420         [clipStart] => 0
  11. 421         [clipEnd] => 1795
  12. 422         [videoDuration] => 1796
  13. 423         clipThumbnail
  14. 424         [clipNote] => 測試說明
  15. 425     )*/
  16. 426     if(count($aData['Timestamp'])===count($aData['TimestampTitle']) && count($aData['TimestampTitle'])>0){
  17. 427       foreach($aData['TimestampTitle'] as $key => $value){
  18. 428         if($value!==''){
  19. 429           $new_Timestamp[] = $aData['Timestamp'][$key];
  20. 430           $new_TimestampTitle[] = $value;
  21. 431         }
  22. 432       }
  23. 433     }
  24. 434     if(count($new_TimestampTitle)>0){
  25. 435       $aData['Timestamp'] = json_encode($new_Timestamp,JSON_UNESCAPED_UNICODE);
  26. 436       $aData['TimestampTitle'] = json_encode($new_TimestampTitle,JSON_UNESCAPED_UNICODE);
  27. 437     }else{
  28. 438       $aData['Timestamp'] = '';
  29. 439       $aData['TimestampTitle'] = '';
  30. 440     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement