|
@@ -36,10 +36,10 @@ class Talent extends AdminController {
|
|
|
$id = $params["id"];
|
|
|
$info = VerifyApi::getTalentInfoById($id, true);
|
|
|
$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){
|
|
|
+ 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']);
|
|
@@ -51,7 +51,7 @@ class Talent extends AdminController {
|
|
|
];
|
|
|
|
|
|
ApiData::create($api_model_data);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$content = unserialize($api_data['content']);
|
|
|
$info['rs'] = $content;
|
|
|
}
|
|
@@ -930,7 +930,7 @@ class Talent extends AdminController {
|
|
|
$data["checkState"] = $log["new_state"];
|
|
|
TalentModel::update($data);
|
|
|
TalentLogApi::setActive($log["id"], 1);
|
|
|
- $this->sendMsgByState($talent_info, $log["state"], $userIds);
|
|
|
+ $this->sendMsgByState($talent_info, $log["state"], $userIds, $log["description"]);
|
|
|
return json(["code" => 200, "msg" => "审核成功"]);
|
|
|
}
|
|
|
|
|
@@ -1088,7 +1088,7 @@ class Talent extends AdminController {
|
|
|
$where[] = ["roleid", "<>", 1];
|
|
|
$userIds = User::where($where)->column("id"); */
|
|
|
|
|
|
- $this->sendMsgByState($talent_info, $log_checkState, $userIds);
|
|
|
+ $this->sendMsgByState($talent_info, $log_checkState, $userIds, $log["description"]);
|
|
|
}
|
|
|
}
|
|
|
TalentLogApi::setActive($dept_log["id"], 1);
|