作者 郭鑫
1 个管道 的构建 通过 耗费 1 秒

雇人修改

... ... @@ -127,8 +127,9 @@ class AdminOrderController extends AdminBaseController
$where_hire['h.status'] = array('neq',9);
$hire = Db::name('Hire')->alias('h')
->where($where_hire)
->join("Select s",'s.id = h.select_id')
->join("Member m",'m.id = h.user_id')
->field('m.openid, h.*')
->field('m.openid, h.* , s.name as select_name')
->find();
... ... @@ -136,7 +137,7 @@ class AdminOrderController extends AdminBaseController
$url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=".$acctoken;
$send = array();
$send['touser'] = $hire['openid'];//OPENID
$send['template_id'] = 'YUC7jOhDQ_kWRumosx_aLFh_ReKjcrZOdbV-zVfRf14';
$send['template_id'] = 'wndcbbmdVKnmw6XYlEiaCY03tKDjZj-Afzm2pt6qlPM';
$send['url'] = 'http://yunzhi07.com/';//模板跳转链接
if($data['status'] == 3){
// 审核通过
... ... @@ -145,11 +146,10 @@ class AdminOrderController extends AdminBaseController
// 审核未通过
$send['data']['first']['value'] = "抱歉,您的审核未通过,原因为".$data['refund'].",请查看订单详";//模板数据
}
$send['data']['keyword1']['value'] = '程序员';//模板数据
$send['data']['keyword2']['value'] = '一步人才网';//模板数据
$send['data']['keyword3']['value'] = '3人';//模板数据
$send['data']['keyword4']['value'] = '5000-6000元/月';//模板数据
$send['data']['keyword5']['value'] = '0471-3388866';//模板数据
$send['data']['keyword1']['value'] = $hire['title'];//企业名称
$send['data']['keyword2']['value'] = $hire['select_name'];//职位名称
$send['data']['keyword3']['value'] = $hire['money'];;//工资金额
$send['data']['keyword4']['value'] = date('Y-m-d H:i:s',$hire['create_time']);//时间
$send['data']['remark']['value'] = '如有其他问题,请及时与我们联系!';//模板数据
$ch = curl_init();//初始化curl
curl_setopt($ch, CURLOPT_URL,$url);//抓取指定网页
... ... @@ -160,10 +160,10 @@ class AdminOrderController extends AdminBaseController
$res = curl_exec($ch);//运行curl
// $a = file_get_contents($res);
echo "<pre/>";
print_r($res);
die;
// $a = file_get_contents($res);
echo "<pre/>";
print_r($res);
die;
Db::commit();
$this->apiResponse('1','操作成功');
}else{
... ...
... ... @@ -61,6 +61,7 @@
<th>雇佣事项</th>
<th>雇主名称</th>
<th>报酬总额</th>
<th>招聘人数</th>
<th>工作时间</th>
<th>工作地点</th>
<th>工作要求</th>
... ... @@ -83,6 +84,7 @@
<td>{$list.select_name}</td>
<td>{$list.title}</td>
<td>{$list.money}</td>
<td>{$list.people}</td>
<td>{$list.start_time} ~ {$list.end_time}</td>
<td>{$list.address}</td>
<td>{$list.else}</td>
... ...
... ... @@ -79,7 +79,7 @@
<div class="textcompany">
<p class="company_name">招聘人数</p>
<div class="companytext_name">
{$list.people}
{$list.people}
</div>
</div>
... ...