|
@@ -124,10 +124,14 @@ class Kan extends Base
|
|
|
'goods_sku_price_id' => $currentSkuPrice['id'],
|
|
|
'activity_id' => $currentSkuPrice['activity_id'],
|
|
|
'status' => ['IN',['ing','finish']],
|
|
|
+ 'expire_time' => ['gt',time()],
|
|
|
];
|
|
|
- $total_kan_price = Db::name('shopro_activity_kan')->where($map_kan)->value('total_kan_price');
|
|
|
+ $kan_info = Db::name('shopro_activity_kan')->where($map_kan)->find();
|
|
|
+ if(empty($kan_info)){
|
|
|
+ throw new ShoproException('本次砍价下过单了或已过期');
|
|
|
+ }
|
|
|
|
|
|
- $total_kan_price = $total_kan_price ? $total_kan_price : 0;
|
|
|
+ $total_kan_price = $kan_info ? $kan_info['total_kan_price'] : 0;
|
|
|
|
|
|
//砍价情况
|
|
|
|