Authored by cailing

再次购买调试

... ... @@ -192,7 +192,7 @@ function buyAgain(id){
data: {orderCode: id}
}).then(function(d) {
if (d.code === 200) {
location.href = '';
location.href = '/shopping/cart';
} else {
new dialog.Alert(d.message).show();
}
... ...
... ... @@ -283,7 +283,7 @@ class OrdersController extends WebAction
}
//获取相关参数
$uid = $this->getUid(true);
$orderCode = $this->get('orderCode', '');
$orderCode = $this->post('orderCode', '');
if (!$uid || !$orderCode) {
$result = array('code' => 400, 'message' => '缺失参数', 'data' => '');
break;
... ...