dbmsv4 init...3
This commit is contained in:
parent
f4308015d5
commit
6a40881839
@ -60,7 +60,8 @@ class ClientController extends CustomerController
|
|||||||
if (!$history) {
|
if (!$history) {
|
||||||
throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생: 비고가 정의되지 않았습니다.");
|
throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생: 비고가 정의되지 않았습니다.");
|
||||||
}
|
}
|
||||||
$this->addViewDatas('entity', $this->service->modify($uid, ['history' => $history]));
|
$entity = $this->service->modify($uid, ['history' => $history]);
|
||||||
|
$this->addViewDatas('entity', $entity);
|
||||||
return $this->action_redirect_process('info', static::class . '->' . __FUNCTION__ . "에서 {$this->getTitle()} 비고설정이 완료되었습니다.");
|
return $this->action_redirect_process('info', static::class . '->' . __FUNCTION__ . "에서 {$this->getTitle()} 비고설정이 완료되었습니다.");
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return $this->action_redirect_process('error', static::class . '->' . __FUNCTION__ . "에서 {$this->getTitle()} 비고설정 오류:" . $e->getMessage());
|
return $this->action_redirect_process('error', static::class . '->' . __FUNCTION__ . "에서 {$this->getTitle()} 비고설정 오류:" . $e->getMessage());
|
||||||
|
|||||||
@ -51,7 +51,8 @@ class ServiceController extends CustomerController
|
|||||||
if (!$history) {
|
if (!$history) {
|
||||||
throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생: 비고가 정의되지 않았습니다.");
|
throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생: 비고가 정의되지 않았습니다.");
|
||||||
}
|
}
|
||||||
$this->addViewDatas('entity', $this->service->modify($uid, ['history' => $history]));
|
$entity = $this->service->modify($uid, ['history' => $history]);
|
||||||
|
$this->addViewDatas('entity', $entity);
|
||||||
return $this->action_redirect_process('info', static::class . '->' . __FUNCTION__ . "에서 {$this->getTitle()} 비고설정이 완료되었습니다.");
|
return $this->action_redirect_process('info', static::class . '->' . __FUNCTION__ . "에서 {$this->getTitle()} 비고설정이 완료되었습니다.");
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return $this->action_redirect_process('error', static::class . '->' . __FUNCTION__ . "에서 {$this->getTitle()} 비고설정 오류:" . $e->getMessage());
|
return $this->action_redirect_process('error', static::class . '->' . __FUNCTION__ . "에서 {$this->getTitle()} 비고설정 오류:" . $e->getMessage());
|
||||||
@ -66,7 +67,8 @@ class ServiceController extends CustomerController
|
|||||||
if (!$billing_at) {
|
if (!$billing_at) {
|
||||||
throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생: 결제일이 정의되지 않았습니다.");
|
throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생: 결제일이 정의되지 않았습니다.");
|
||||||
}
|
}
|
||||||
$this->addViewDatas('entity', $this->service->modify($uid, ['billing_at' => $billing_at]));
|
$entity = $this->service->modify($uid, ['billing_at' => $billing_at]);
|
||||||
|
$this->addViewDatas('entity', $entity);
|
||||||
return $this->action_redirect_process('info', static::class . '->' . __FUNCTION__ . "에서 {$this->getTitle()} 결제일 변경이 완료되었습니다.");
|
return $this->action_redirect_process('info', static::class . '->' . __FUNCTION__ . "에서 {$this->getTitle()} 결제일 변경이 완료되었습니다.");
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return $this->action_redirect_process('error', static::class . '->' . __FUNCTION__ . "에서 {$this->getTitle()} 결제일 변경 오류:" . $e->getMessage());
|
return $this->action_redirect_process('error', static::class . '->' . __FUNCTION__ . "에서 {$this->getTitle()} 결제일 변경 오류:" . $e->getMessage());
|
||||||
|
|||||||
@ -118,8 +118,9 @@ abstract class CommonForm
|
|||||||
//Validation용
|
//Validation용
|
||||||
final public function validate(array $formDatas): bool
|
final public function validate(array $formDatas): bool
|
||||||
{
|
{
|
||||||
|
dd($this);
|
||||||
if ($this->_validation === null) {
|
if ($this->_validation === null) {
|
||||||
$this->_validation = service('validation');
|
throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생: Validation 서비스가 초기화되지 않았습니다.");
|
||||||
}
|
}
|
||||||
$dynamicRules = [];
|
$dynamicRules = [];
|
||||||
$dynamicLabels = []; // 레이블 배열 추가
|
$dynamicLabels = []; // 레이블 배열 추가
|
||||||
|
|||||||
@ -218,6 +218,7 @@ abstract class CommonService
|
|||||||
//관리자 정보추가용
|
//관리자 정보추가용
|
||||||
$formDatas['user_uid'] = $this->getAuthContext()->getUID();
|
$formDatas['user_uid'] = $this->getAuthContext()->getUID();
|
||||||
// 데이터 검증
|
// 데이터 검증
|
||||||
|
// dd($this->getFormService());
|
||||||
if (!$this->getFormService()->validate($formDatas)) {
|
if (!$this->getFormService()->validate($formDatas)) {
|
||||||
throw new ValidationException(
|
throw new ValidationException(
|
||||||
implode("\n", service('validation')->getErrors())
|
implode("\n", service('validation')->getErrors())
|
||||||
|
|||||||
@ -73,5 +73,6 @@ abstract class WalletService extends CustomerService
|
|||||||
'status' => STATUS['WITHDRAWAL'],
|
'status' => STATUS['WITHDRAWAL'],
|
||||||
];
|
];
|
||||||
$this->withdrawal_process($clientEntity, $formDatas);
|
$this->withdrawal_process($clientEntity, $formDatas);
|
||||||
|
$this->create_process($formDatas);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user