Commit df28dae1 authored by wwccw0591's avatar wwccw0591

upd

parent b12d5e0d
...@@ -161,7 +161,7 @@ class CartController extends \Our\Controller_AbstractApi{ ...@@ -161,7 +161,7 @@ class CartController extends \Our\Controller_AbstractApi{
$sess=\Yaf\Session::getInstance(); $sess=\Yaf\Session::getInstance();
$currentAddress = $sess->get('currentAddress'); $currentAddress = $sess->get('currentAddress');
$result = $cartService->addOrder($data,$this->memberId,$currentAddress); $result = $cartService->addOrder($data, $this->memberId,$currentAddress);
$this->success($result); $this->success($result);
} }
......
...@@ -147,8 +147,8 @@ class OrderConfirmUtil { ...@@ -147,8 +147,8 @@ class OrderConfirmUtil {
$storeCartData = array('cartList'=>$cartList['list'],'storeIds'=>array_keys($cartList['list']),'goodsIds'=>$storeCartList['goodsIds'],'goodsCommonIds'=>$storeCartList['goodsCommonIds'],'blIds'=>$storeCartList['blIds'],'gcIds'=>$gcIds); $storeCartData = array('cartList'=>$cartList['list'],'storeIds'=>array_keys($cartList['list']),'goodsIds'=>$storeCartList['goodsIds'],'goodsCommonIds'=>$storeCartList['goodsCommonIds'],'blIds'=>$storeCartList['blIds'],'gcIds'=>$gcIds);
} }
if($this->storeCouponIds&&$this->couponIds){ if ($this->storeCouponIds&&$this->couponIds) {
$storeCartData = $this->checkCouponForOrder($storeCartData,$this->memberId); $storeCartData = $this->checkCouponForOrder($storeCartData, $this->memberId);
} }
return $storeCartData; return $storeCartData;
......
...@@ -314,6 +314,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel ...@@ -314,6 +314,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
* Time: 下午 3:37 * Time: 下午 3:37
*/ */
public function updateStatGoods(){ public function updateStatGoods(){
file_put_contents($this->baseDir . \Our\PathConst::goodsStatTime, '1545632401');
$beginTime = file_get_contents($this->baseDir . \Our\PathConst::goodsStatTime, TIMESTAMP); $beginTime = file_get_contents($this->baseDir . \Our\PathConst::goodsStatTime, TIMESTAMP);
$beginTime = $beginTime ? $beginTime : ApiConst::zero; $beginTime = $beginTime ? $beginTime : ApiConst::zero;
$endTime = TIMESTAMP; $endTime = TIMESTAMP;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment