更新
This commit is contained in:
parent
3cfd1c5ca8
commit
e57fc9cc84
@ -155,6 +155,7 @@ class MerchantLogic extends BaseLogic
|
|||||||
];
|
];
|
||||||
$res1=UserLogic::add($user);
|
$res1=UserLogic::add($user);
|
||||||
if($res1==false){
|
if($res1==false){
|
||||||
|
Db::rollback();
|
||||||
throw new BusinessException(UserLogic::getError(), 0);
|
throw new BusinessException(UserLogic::getError(), 0);
|
||||||
}
|
}
|
||||||
if($params['status']==1){
|
if($params['status']==1){
|
||||||
|
@ -97,6 +97,7 @@ class SupplierLogic extends BaseLogic
|
|||||||
|
|
||||||
$res1=UserLogic::add($user);
|
$res1=UserLogic::add($user);
|
||||||
if($res1==false){
|
if($res1==false){
|
||||||
|
Db::rollback();
|
||||||
throw new BusinessException(UserLogic::getError(), 0);
|
throw new BusinessException(UserLogic::getError(), 0);
|
||||||
}
|
}
|
||||||
if($params['status']==1){
|
if($params['status']==1){
|
||||||
|
@ -70,7 +70,7 @@ class MerchantValidate extends BaseValidate
|
|||||||
*/
|
*/
|
||||||
public function sceneStatus()
|
public function sceneStatus()
|
||||||
{
|
{
|
||||||
return $this->only(['mer_id', 'status'])->append('apply_id', 'require');
|
return $this->only(['mer_id', 'status'])->append('apply_id', 'require')->append('service_phone','require');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -60,7 +60,7 @@ class SupplierValidate extends BaseValidate
|
|||||||
*/
|
*/
|
||||||
public function sceneStatus()
|
public function sceneStatus()
|
||||||
{
|
{
|
||||||
return $this->only(['id', 'status'])->append('apply_id', 'require');
|
return $this->only(['id', 'status'])->append('apply_id', 'require')->append('service_phone','require');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user