Commit df28dae1 authored by wwccw0591's avatar wwccw0591

upd

parent b12d5e0d
......@@ -161,7 +161,7 @@ class CartController extends \Our\Controller_AbstractApi{
$sess=\Yaf\Session::getInstance();
$currentAddress = $sess->get('currentAddress');
$result = $cartService->addOrder($data,$this->memberId,$currentAddress);
$result = $cartService->addOrder($data, $this->memberId,$currentAddress);
$this->success($result);
}
......
......@@ -145,10 +145,10 @@ class OrderConfirmUtil {
$cartList = $pBundlingService->getFormatCartListForOrder($storeCartList,$this->memberId,true,$dbName);
$gcIds = isset($cartList['gcIds'])?$cartList['gcIds']:array();
$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){
$storeCartData = $this->checkCouponForOrder($storeCartData,$this->memberId);
if ($this->storeCouponIds&&$this->couponIds) {
$storeCartData = $this->checkCouponForOrder($storeCartData, $this->memberId);
}
return $storeCartData;
......@@ -1255,4 +1255,4 @@ class OrderConfirmUtil {
return self::$_instance;
}
}
\ No newline at end of file
}
......@@ -314,6 +314,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
* Time: 下午 3:37
*/
public function updateStatGoods(){
file_put_contents($this->baseDir . \Our\PathConst::goodsStatTime, '1545632401');
$beginTime = file_get_contents($this->baseDir . \Our\PathConst::goodsStatTime, TIMESTAMP);
$beginTime = $beginTime ? $beginTime : ApiConst::zero;
$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