|
@@ -353,7 +353,6 @@ class AppointmentService
|
|
|
if ($goods->is_support_appointment == 'Y' && !empty($goods->goods_attribute_json)) {
|
|
|
$extendJson = json_decode($goods->goods_attribute_json, true);
|
|
|
foreach ($extendJson['times'] as $key => $time) {
|
|
|
- dump($time,$params['appointment_times']);
|
|
|
if ($time['duration'] == $params['appointment_times']) {
|
|
|
if (!empty($appointments)){
|
|
|
foreach ($appointments as $appointment) {
|
|
@@ -524,7 +523,11 @@ class AppointmentService
|
|
|
BenefitController::doWriteOff($paramsData);
|
|
|
}
|
|
|
// 回写权益ID
|
|
|
- Appointment::where('appointment_id', $appointmentId)->update(['join_appointment_member_benefit_id' => $params['quota_id']]);
|
|
|
+ if(empty($appointment->join_appointment_member_benefit_id)){
|
|
|
+ Appointment::where('appointment_id', $appointmentId)->update(['join_appointment_member_benefit_id' => $params['quota_id']]);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
Db::commit();
|