Exemplo n.º 1
0
 public function getHotFiles($folderId = 0)
 {
     if (!empty($this->request->arg[3])) {
         $folderId = $this->request->arg[3];
     }
     $res = $this->db->getRows('select * from folders where parent_id=' . $folderId);
     ZDebug::my_print($res, 'foldList result');
     return $res;
 }
Exemplo n.º 2
0
 private function submitFileHelper()
 {
     //////
     $submittedArr = array('folderFullName' => '车展美女/MM写真-100万MM美女车模', 'files' => array(array('url' => 'http://pic.baa.bitautotech.com/temp/2011531101247402.jpg', 'fields' => '{"Title":"【美女|美女图片-MM写真-100万MM美女车模图片】-易车网BitAuto.com","MetaDescription":"美女图片:易车网天猫美女图片库是国内天猫美女图片量最丰富、图片清晰度最高的专业天猫商城图片频道,我们团队的顶级摄影师为您呈现出,车展美女、日韩美女、欧美美女、美女写真,让您在选择爱车的同时并享受视觉大餐。","MetaKeywords":"美女,美女图片,美女写真,日韩美女,欧美美女,中国美女,美女车模,天猫","Text":"娇媚车模梁言可爱迷人"}'), array('url' => 'http://pic.baa.bitautotech.com/temp/201153110194299.jpg', 'fields' => '{"Title":"【美女|美女图片-MM写真-100万MM美女车模图片】-易车网BitAuto.com","MetaDescription":"美女图片:易车网天猫美女图片库是国内天猫美女图片量最丰富、图片清晰度最高的专业天猫商城图片频道,我们团队的顶级摄影师为您呈现出,车展美女、日韩美女、欧美美女、美女写真,让您在选择爱车的同时并享受视觉大餐。","MetaKeywords":"美女,美女图片,美女写真,日韩美女,欧美美女,中国美女,美女车模,天猫","Text":"车模制服私房照曝光"}')));
     ZDebug::my_print($submittedArr, 'The array to submit should be like this:');
     $data = json_encode($submittedArr);
     ZDebug::my_print($data, 'The json to submit should be like this:');
     $dataArr = json_decode($data);
     ZDebug::my_print($dataArr, 'After the json is decoded in server side, the data object would look like this:');
     exit;
 }