|
@@ -7,6 +7,7 @@ use app\common\api\ChuanglanSmsApi;
|
|
|
use app\common\api\VerifyApi;
|
|
|
use app\common\api\TalentLogApi;
|
|
|
use app\common\api\TalentState;
|
|
|
+use app\common\controller\Api;
|
|
|
use app\common\model\MessageRecord;
|
|
|
use app\enterprise\model\Talent as TalentModel;
|
|
|
use app\common\api\TalentConditionApi;
|
|
@@ -20,6 +21,7 @@ use app\admin\model\SysRelation;
|
|
|
use app\common\api\CompanyApi;
|
|
|
use app\common\state\ProjectState;
|
|
|
use app\admin\api\RsApi;
|
|
|
+use app\admin\model\ApiData;
|
|
|
|
|
|
/**
|
|
|
* Description of Talent
|
|
@@ -33,11 +35,29 @@ class Talent extends AdminController {
|
|
|
$params = $request->param();
|
|
|
$id = $params["id"];
|
|
|
$info = VerifyApi::getTalentInfoById($id, true);
|
|
|
- $rsapi = new RsApi();
|
|
|
- if($info['card_type'] == 1){
|
|
|
- $info['rs']['I010902'] = $rsapi->I010902($info['card_number']);
|
|
|
-
|
|
|
- }
|
|
|
+// $rsapi = new RsApi();
|
|
|
+// if($info['card_type'] == 1){
|
|
|
+// $endTime = strtotime(date('Y-m-d').'23:59:59');
|
|
|
+// $api_data = ApiData::where('uid','=',$info['card_number'])->where('action', '=', 'rending')->where('createTime','<',$endTime)->find();//当天没有记录就请求
|
|
|
+// if(!$api_data){
|
|
|
+// $content = [];
|
|
|
+// $info['rs']['I010902'] = $content['I010902'] = $rsapi->I010902($info['card_number']);
|
|
|
+// $info['rs']['I030101'] = $content['I030101'] = $rsapi->I030101($info['card_number']);
|
|
|
+// $api_model_data = [
|
|
|
+// 'uid' => $info['card_number'],
|
|
|
+// 'action' => 'rending',
|
|
|
+// 'content' => serialize($content),
|
|
|
+// 'createTime' => time()
|
|
|
+// ];
|
|
|
+//
|
|
|
+// ApiData::create($api_model_data);
|
|
|
+// }else{
|
|
|
+// $content = unserialize($api_data['content']);
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+// }
|
|
|
if (in_array($info["checkState"], [TalentState::BASE_VERIFY_FAIL, TalentState::FST_SUBMIT, TalentState::BASE_VERIFY_PASS, TalentState::BASE_REVERIFY_REJECT, TalentState::BASE_REVERIFY_FAIL])) {
|
|
|
return view("talentInfo_base_check", ["info" => $info]);
|
|
|
} else {
|