Authored by 郭成尧

'apiurl'

@@ -230,7 +230,7 @@ class OrderData @@ -230,7 +230,7 @@ class OrderData
230 $param['method'] = 'app.SpaceOrders.delOrderByCode'; 230 $param['method'] = 'app.SpaceOrders.delOrderByCode';
231 $param['client_secret'] = Sign::getSign($param); 231 $param['client_secret'] = Sign::getSign($param);
232 //调用接口删除订单 232 //调用接口删除订单
233 - return Yohobuy::get(Yohobuy::API_URL, $param); 233 + return Yohobuy::get(API_URL, $param);
234 } 234 }
235 235
236 } 236 }
@@ -328,64 +328,4 @@ class OrdersController extends WebAction @@ -328,64 +328,4 @@ class OrdersController extends WebAction
328 $this->echoJson($result); 328 $this->echoJson($result);
329 } 329 }
330 330
331 - /**  
332 - * 还原订单  
333 - */  
334 - public function restoreOrderAction()  
335 - {  
336 - $data = array('code' => 400, 'message' => '', 'data' => '');  
337 -  
338 - do {  
339 - /* 判断是不是AJAX请求 */  
340 - if (!$this->isAjax()) {  
341 - break;  
342 - }  
343 - $uid = $this->auditJumpLogin();  
344 - $orderCode = trim($this->post('orderCode', ''));  
345 -// $data = OrderData::confirmUserOrder($uid, $orderCode);  
346 - $data = array('code' => 400, 'message' => '订单还原成功', 'data' => '');  
347 - if (!isset($data['code'])) {  
348 - break;  
349 - }  
350 - }  
351 - while (false);  
352 -  
353 - $this->echoJson($data);  
354 - }  
355 -  
356 - /*  
357 - * 我的订单-删除订单  
358 - */  
359 -  
360 - public function delOrderAction()  
361 - {  
362 -  
363 - $result = array('code' => 400, 'message' => '删除失败', 'data' => '');  
364 -  
365 - do {  
366 - /* 判断是不是AJAX请求 */  
367 - if (!$this->isAjax()) {  
368 - break;  
369 - }  
370 -  
371 - //传入orderCode删除订单  
372 - $orderCode = $this->post('orderCode','');  
373 - $gender = Helpers::getGenderByCookie();  
374 - $channel = Helpers::getChannelByCookie();  
375 - $uid = $this->getUid(true);  
376 - if (!$orderCode || !$uid) {  
377 - $result = array('code' => 400, 'message' => '缺失必填项', 'data' => '');  
378 - break;  
379 - }  
380 - //调用接口删除订单,并返回订单删除状态  
381 - $result = OrderData::deleteOrderData($orderCode, $uid, $gender, $channel);  
382 - if (!isset($result['code'])) {  
383 - break;  
384 - }  
385 - }  
386 - while (false);  
387 -  
388 - $this->echoJson($result);  
389 - }  
390 -  
391 } 331 }