|
|
@@ -4,6 +4,7 @@ use app\common\logic\BaseLogic;
|
|
|
use app\common\model\bank_account\BankAccount;
|
|
|
use app\common\model\master_worker\MasterWorker;
|
|
|
use app\common\model\master_worker\MasterWorkerInfo;
|
|
|
+use think\Exception;
|
|
|
|
|
|
/**
|
|
|
* @author 林海涛
|
|
|
@@ -21,6 +22,11 @@ class MasterWorkerInfoLogic extends BaseLogic
|
|
|
public static function changeIdCard($params,$userId)
|
|
|
{
|
|
|
try{
|
|
|
+
|
|
|
+ if(empty($params['id_card_front_img']) || empty($params['id_card_opposite_img'])){
|
|
|
+ throw new Exception('请上传身份证正反面照片');
|
|
|
+ }
|
|
|
+
|
|
|
$where = [['worker_id', '=', $userId]];
|
|
|
$userInfo = MasterWorkerInfo::where($where)->findOrEmpty();
|
|
|
if ($userInfo->isEmpty()) {
|