Authored by whb

测试

... ... @@ -508,7 +508,7 @@ class YHMApi_App_V1_Orders extends YHMApi_App_V1_Base {
YHMOrders_Models_Status_Client::setOrderstatus($order_code, YHMConfig_Orderstatus::NOTICE_SELLER_SEND_GOODS, $uid);
}
}
} else {
} else { //TODO 有问题
if ($notice_type == 'delivery') {
YHMOrders_Models_Status_Client::setOrderstatus($order_code, YHMConfig_Orderstatus::NOTICE_SELLER_SEND_GOODS, $uid);
}
... ...
... ... @@ -58,7 +58,7 @@ abstract class YHMCart_Cart_Abstract extends YHMCart_Cart_Dispatch
$params['buy_number']=$tmpGoods['buy_number'];
$params['goods_type']=$tmpGoods['goods_type'];
$params['is_change']='N';
$params['salse_price']=$goods['salse_price'];
$params['salse_price']=$goods['salse_price'];//TODO 写错了,插入数据库有问题
$params['store_id']=$goods['store_id'];
$cart=YHMOrders_Models_Cart_Client::getDetailByUid($uid, $params['product_sku'], $params['last_price']);
if(empty($cart))
... ... @@ -144,9 +144,9 @@ abstract class YHMCart_Cart_Abstract extends YHMCart_Cart_Dispatch
'sell_channels' => $productInfo['sell_channels']
);
$goodsInfo = QINProduct_Models_Goods_Client::getByGoodsId($storage['goods_id']);
$goodsInfo = QINProduct_Models_Goods_Client::getByGoodsId($storage['goods_id']); //TODO 有问题
$priceInfo = QINProduct_Models_Price_Client::getProductPrice($storage['product_id']);
$priceInfo = QINProduct_Models_Price_Client::getProductPrice($storage['product_id']);//TODO
$sizeName = QINProduct_Models_Size_Client::getSizeName($storage['goods_dimension_id']);
$totalAmount = $priceInfo['sales_price'] * $product['buy_number'];
... ...
... ... @@ -67,6 +67,14 @@ class YHMComment_Models_Comment_Dao extends YHMComment_Dao {
* @return int
*/
function add($uid, $order_code, $store_id, $product_skc, $star) {
echo $this->dao()->getSql(Comment\Comment::INSERT_COMMENT, array(
"uid" => $uid,
"order_code" => $order_code,
"store_id" => $store_id,
"product_skc" => $product_skc,
"star" => $star
));
exit;
return $this->dao()->tag($this->_tag . $store_id)->insert(Comment\Comment::INSERT_COMMENT, array(
"uid" => $uid,
"order_code" => $order_code,
... ...