...
|
...
|
@@ -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{
|
...
|
...
|
|