示例#1
0
文件: alipay.php 项目: lughong/test
 public function zfb_order_done($order_id)
 {
     //检查orderid是不是本人的
     Assert::num_gt_zero($order_id);
     $uid = User::get_login_id();
     if (!$uid) {
         $url = URL . 'login';
         header("Location:{$url}");
         throw new Exception("exit");
     } else {
         $result = OrderInfo::get_order_info($order_id);
         if (!$result) {
             header("location:" . URL);
         }
         $smarty = get_smarty();
         //再去逛逛
         $smarty->assign('homeurl', URL);
         //订单详情
         $smarty->assign('order_detail_url', URL . 'weixin/usercenter/order_detail/' . $order_id);
         $smarty->display('web/home/order_success.html');
     }
 }