organization_code){ // Log::error(['认证回调错误:',$parmas]); // return json(['success' => false, 'msg' => '认证回调错误']); // } $shopMerchant->save(['is_authentication' => 1]); // 生成合同 $createContractData = [ 'id' => $id, 'party_a' => 1, 'party_a_name' => '泸州市海之农科技有限公司', 'party_b' => $id, 'party_b_name' => $shopMerchant->company_name, 'contract_type' => 22, ]; $model = new ShopContract(); $model->contract_no = time(); $model->create_time = time(); $model->check_status = 1; $model->update_time = time(); $model->setAttrs($createContractData); $res = $model->save($createContractData); // } halt($res); $select = Db::name('company_form')->where('type', 0) ->select(); $id = 0; foreach ($select as $key => $value) { $id = $value['id']; if ($value['organization_code'] != '' || $value['organization_code'] != null) { // $pattern = "/\*/"; $name = $value['master_name']; // if(preg_match($pattern, $name)){ // $name=$value['master_name']; // } // if ($value['master_email']) { $email = $value['master_email']; // } else { // $email = substr(md5(uniqid()), rand(0, 22), 10) . "@lihai.com"; // } $shopMerchantCertificationData = [ 'name' => $name, 'organization_code' => $value['organization_code'], 'business_license' => 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/561f8202305171526091317.png', 'master_name' => $value['master_name'], 'master_email' => $email, 'id' => $value['id'], ]; // Db::name('company_form')->where('id', $value['id'])->update(['master_email' => $email]); queue(TaskTenZehn::class,$shopMerchantCertificationData); } else { Db::name('company_form')->where('id', $value['id'])->update(['type' => -1]); continue; } // $a=app(JunziqianController::class)->ShopMerchantCertification($shopMerchantCertificationData); } halt($id); } public function ceshi1() { //认证一条龙 $shopMerchantCertificationData = [ 'name' => 1212, 'organization_code' => 2323, 'business_license' => 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/561f8202305171526091317.png', 'master_name' => 3423, 'master_email' => 343, 'id' => 123, ]; app(JunziqianController::class)->ShopMerchantCertification($shopMerchantCertificationData); halt(111); } public function ceshi2() { //重新认证 $shopMerchantCertificationData = [ 'name' => 1212, 'organization_code' => 2323, 'business_license' => 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/561f8202305171526091317.png', 'master_name' => 3423, 'master_email' => 343, 'id' => 123, ]; app(JunziqianController::class)->organizationReapply($shopMerchantCertificationData); halt(111); } }