| xqd
@@ -59,8 +59,8 @@ class OrderPack extends BaseModel
|
|
|
}
|
|
|
|
|
|
if ($product_type == 1) {
|
|
|
- if ($data['phone_minutes'] < 10) {
|
|
|
- exit_out(null, 10003, '服务包的电话咨询时间不足');
|
|
|
+ if ($data['phone_minutes'] <= 0) {
|
|
|
+ exit_out(null, 10003, '服务包的电话咨询次数不足');
|
|
|
}
|
|
|
}
|
|
|
elseif ($product_type == 2) {
|
| xqd
@@ -90,7 +90,7 @@ class OrderPack extends BaseModel
|
|
|
public static function deductPackData($order_pack_id, $product_type)
|
|
|
{
|
|
|
if ($product_type == 1) {
|
|
|
- self::where('id', $order_pack_id)->decrement('phone_minutes', 10);
|
|
|
+ self::where('id', $order_pack_id)->decrement('phone_minutes');
|
|
|
}
|
|
|
elseif ($product_type == 2) {
|
|
|
self::where('id', $order_pack_id)->decrement('chat_num');
|