/** * * 获得用户所有downloadedcoupon信息, join Table: DownloadedCoupon * * @return */ public function myDownloadedCoupon_get() { $uid = $this->get('uid'); $results = $this->my_m->get_my_downloaded_coupons($uid); //重新处理results if (empty($results['error'])) { foreach ($results as $result) { $array[] = $result['coupon']; } $results = $array; } return $this->output_results($results); }