...
|
...
|
@@ -196,10 +196,10 @@ class HomeController extends AbstractAction |
|
|
* YOHO币
|
|
|
*/
|
|
|
public function currencyAction() {
|
|
|
$this->setTitle('YOHO币');
|
|
|
$this->setTitle('YOHO币');
|
|
|
$this->setNavHeader('YOHO币', true, false);
|
|
|
|
|
|
// $uid = $this->getUid();
|
|
|
// $uid = $this->getUid();
|
|
|
$uid = 967016;
|
|
|
$currency = \Index\UserModel::getYohoCoinData($uid);
|
|
|
|
...
|
...
|
@@ -221,7 +221,6 @@ class HomeController extends AbstractAction |
|
|
'couponsUrl' => \Index\UserModel::getCouponData($uid, $status),
|
|
|
'couponsPage' => true
|
|
|
);
|
|
|
|
|
|
$this->_view->display('coupons', $coupons);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -522,19 +521,14 @@ class HomeController extends AbstractAction |
|
|
$this->error();
|
|
|
}
|
|
|
//传入order_code和uid以取消订单
|
|
|
$order_code = $this->get('id');
|
|
|
$order_code = $this->get('orderCode');
|
|
|
$uid = $this->getUid();
|
|
|
$uid = '10267443'; //测试用
|
|
|
$gender = Helpers::getGenderByCookie();
|
|
|
$yh_channel = $this->get('yh_channel', 1);
|
|
|
$method = 'app.SpaceOrders.close';
|
|
|
$data = OrderData::cancelOrderData($order_code, $uid, $gender, $yh_channel, $method);
|
|
|
if ($data['code'] == 200) {
|
|
|
$arr = array();
|
|
|
$arr['code'] = $data['code'];
|
|
|
$arr['message'] = $data['message'];
|
|
|
echo json_encode($arr);
|
|
|
}
|
|
|
$this->echoJson($data);
|
|
|
}
|
|
|
|
|
|
/*
|
...
|
...
|
@@ -554,27 +548,7 @@ class HomeController extends AbstractAction |
|
|
$yh_channel = $this->get('yh_channel', 1);
|
|
|
$method = 'app.SpaceOrders.delOrderByCode';
|
|
|
$data = OrderData::deleteOrderData($order_code, $uid, $gender, $yh_channel, $method);
|
|
|
if ($data['code'] == 200) {
|
|
|
$arr = array();
|
|
|
$arr['code'] = $data['code'];
|
|
|
$arr['message'] = $data['message'];
|
|
|
echo json_encode($arr);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 付款
|
|
|
*/
|
|
|
public function getPaymentAction() {
|
|
|
$contentCode = $this->get('content_code');
|
|
|
$contentCode = '04cf5abaa7c20178325a07c4a833782c';
|
|
|
$gender = Helpers::getGenderByCookie();
|
|
|
$yh_channel = $this->get('yh_channel', 1);
|
|
|
$data = OrderData::getPaymentData($contentCode, $gender, $yh_channel);
|
|
|
//print_r($data);
|
|
|
if ($data['code'] == 200) {
|
|
|
|
|
|
}
|
|
|
$this->echoJson($data);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|