正在显示
3 个修改的文件
包含
14 行增加
和
12 行删除
@@ -127,8 +127,9 @@ class AdminOrderController extends AdminBaseController | @@ -127,8 +127,9 @@ class AdminOrderController extends AdminBaseController | ||
127 | $where_hire['h.status'] = array('neq',9); | 127 | $where_hire['h.status'] = array('neq',9); |
128 | $hire = Db::name('Hire')->alias('h') | 128 | $hire = Db::name('Hire')->alias('h') |
129 | ->where($where_hire) | 129 | ->where($where_hire) |
130 | + ->join("Select s",'s.id = h.select_id') | ||
130 | ->join("Member m",'m.id = h.user_id') | 131 | ->join("Member m",'m.id = h.user_id') |
131 | - ->field('m.openid, h.*') | 132 | + ->field('m.openid, h.* , s.name as select_name') |
132 | ->find(); | 133 | ->find(); |
133 | 134 | ||
134 | 135 | ||
@@ -136,7 +137,7 @@ class AdminOrderController extends AdminBaseController | @@ -136,7 +137,7 @@ class AdminOrderController extends AdminBaseController | ||
136 | $url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=".$acctoken; | 137 | $url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=".$acctoken; |
137 | $send = array(); | 138 | $send = array(); |
138 | $send['touser'] = $hire['openid'];//OPENID | 139 | $send['touser'] = $hire['openid'];//OPENID |
139 | - $send['template_id'] = 'YUC7jOhDQ_kWRumosx_aLFh_ReKjcrZOdbV-zVfRf14'; | 140 | + $send['template_id'] = 'wndcbbmdVKnmw6XYlEiaCY03tKDjZj-Afzm2pt6qlPM'; |
140 | $send['url'] = 'http://yunzhi07.com/';//模板跳转链接 | 141 | $send['url'] = 'http://yunzhi07.com/';//模板跳转链接 |
141 | if($data['status'] == 3){ | 142 | if($data['status'] == 3){ |
142 | // 审核通过 | 143 | // 审核通过 |
@@ -145,11 +146,10 @@ class AdminOrderController extends AdminBaseController | @@ -145,11 +146,10 @@ class AdminOrderController extends AdminBaseController | ||
145 | // 审核未通过 | 146 | // 审核未通过 |
146 | $send['data']['first']['value'] = "抱歉,您的审核未通过,原因为".$data['refund'].",请查看订单详";//模板数据 | 147 | $send['data']['first']['value'] = "抱歉,您的审核未通过,原因为".$data['refund'].",请查看订单详";//模板数据 |
147 | } | 148 | } |
148 | - $send['data']['keyword1']['value'] = '程序员';//模板数据 | ||
149 | - $send['data']['keyword2']['value'] = '一步人才网';//模板数据 | ||
150 | - $send['data']['keyword3']['value'] = '3人';//模板数据 | ||
151 | - $send['data']['keyword4']['value'] = '5000-6000元/月';//模板数据 | ||
152 | - $send['data']['keyword5']['value'] = '0471-3388866';//模板数据 | 149 | + $send['data']['keyword1']['value'] = $hire['title'];//企业名称 |
150 | + $send['data']['keyword2']['value'] = $hire['select_name'];//职位名称 | ||
151 | + $send['data']['keyword3']['value'] = $hire['money'];;//工资金额 | ||
152 | + $send['data']['keyword4']['value'] = date('Y-m-d H:i:s',$hire['create_time']);//时间 | ||
153 | $send['data']['remark']['value'] = '如有其他问题,请及时与我们联系!';//模板数据 | 153 | $send['data']['remark']['value'] = '如有其他问题,请及时与我们联系!';//模板数据 |
154 | $ch = curl_init();//初始化curl | 154 | $ch = curl_init();//初始化curl |
155 | curl_setopt($ch, CURLOPT_URL,$url);//抓取指定网页 | 155 | curl_setopt($ch, CURLOPT_URL,$url);//抓取指定网页 |
@@ -160,10 +160,10 @@ class AdminOrderController extends AdminBaseController | @@ -160,10 +160,10 @@ class AdminOrderController extends AdminBaseController | ||
160 | $res = curl_exec($ch);//运行curl | 160 | $res = curl_exec($ch);//运行curl |
161 | 161 | ||
162 | 162 | ||
163 | -// $a = file_get_contents($res); | ||
164 | - echo "<pre/>"; | ||
165 | - print_r($res); | ||
166 | - die; | 163 | + // $a = file_get_contents($res); |
164 | + echo "<pre/>"; | ||
165 | + print_r($res); | ||
166 | + die; | ||
167 | Db::commit(); | 167 | Db::commit(); |
168 | $this->apiResponse('1','操作成功'); | 168 | $this->apiResponse('1','操作成功'); |
169 | }else{ | 169 | }else{ |
@@ -61,6 +61,7 @@ | @@ -61,6 +61,7 @@ | ||
61 | <th>雇佣事项</th> | 61 | <th>雇佣事项</th> |
62 | <th>雇主名称</th> | 62 | <th>雇主名称</th> |
63 | <th>报酬总额</th> | 63 | <th>报酬总额</th> |
64 | + <th>招聘人数</th> | ||
64 | <th>工作时间</th> | 65 | <th>工作时间</th> |
65 | <th>工作地点</th> | 66 | <th>工作地点</th> |
66 | <th>工作要求</th> | 67 | <th>工作要求</th> |
@@ -83,6 +84,7 @@ | @@ -83,6 +84,7 @@ | ||
83 | <td>{$list.select_name}</td> | 84 | <td>{$list.select_name}</td> |
84 | <td>{$list.title}</td> | 85 | <td>{$list.title}</td> |
85 | <td>{$list.money}</td> | 86 | <td>{$list.money}</td> |
87 | + <td>{$list.people}</td> | ||
86 | <td>{$list.start_time} ~ {$list.end_time}</td> | 88 | <td>{$list.start_time} ~ {$list.end_time}</td> |
87 | <td>{$list.address}</td> | 89 | <td>{$list.address}</td> |
88 | <td>{$list.else}</td> | 90 | <td>{$list.else}</td> |
@@ -79,7 +79,7 @@ | @@ -79,7 +79,7 @@ | ||
79 | <div class="textcompany"> | 79 | <div class="textcompany"> |
80 | <p class="company_name">招聘人数</p> | 80 | <p class="company_name">招聘人数</p> |
81 | <div class="companytext_name"> | 81 | <div class="companytext_name"> |
82 | - {$list.people} | 82 | + {$list.people} 人 |
83 | 83 | ||
84 | </div> | 84 | </div> |
85 | </div> | 85 | </div> |
-
请 注册 或 登录 后发表评论