|
@@ -75,19 +75,19 @@ class OrderPack extends BaseModel
|
|
}
|
|
}
|
|
elseif ($product_type == 4) {
|
|
elseif ($product_type == 4) {
|
|
if ($data['vaccine_limit_amount'] < $payment_amount) {
|
|
if ($data['vaccine_limit_amount'] < $payment_amount) {
|
|
- exit_out(null, 10006, '服务包疫苗金额不足');
|
|
|
|
|
|
+ exit_out(null, 10006, '服务包疫苗次数不足');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
elseif ($product_type == 5) {
|
|
elseif ($product_type == 5) {
|
|
if ($data['nurses_limit_amount'] < $payment_amount) {
|
|
if ($data['nurses_limit_amount'] < $payment_amount) {
|
|
- exit_out(null, 10007, '服务包儿保金额不足');
|
|
|
|
|
|
+ exit_out(null, 10007, '服务包儿保次数不足');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
- public static function deductPackData($order_pack_id, $product_type, $payment_amount)
|
|
|
|
|
|
+ public static function deductPackData($order_pack_id, $product_type)
|
|
{
|
|
{
|
|
if ($product_type == 1) {
|
|
if ($product_type == 1) {
|
|
self::where('id', $order_pack_id)->decrement('phone_minutes', 10);
|
|
self::where('id', $order_pack_id)->decrement('phone_minutes', 10);
|
|
@@ -99,10 +99,10 @@ class OrderPack extends BaseModel
|
|
self::where('id', $order_pack_id)->decrement('appoint_num');
|
|
self::where('id', $order_pack_id)->decrement('appoint_num');
|
|
}
|
|
}
|
|
elseif ($product_type == 4) {
|
|
elseif ($product_type == 4) {
|
|
- self::where('id', $order_pack_id)->decrement('vaccine_limit_amount', $payment_amount);
|
|
|
|
|
|
+ self::where('id', $order_pack_id)->decrement('vaccine_limit_amount');
|
|
}
|
|
}
|
|
elseif ($product_type == 5) {
|
|
elseif ($product_type == 5) {
|
|
- self::where('id', $order_pack_id)->decrement('nurses_limit_amount', $payment_amount);
|
|
|
|
|
|
+ self::where('id', $order_pack_id)->decrement('nurses_limit_amount');
|
|
}
|
|
}
|
|
|
|
|
|
return true;
|
|
return true;
|