作者 sgj
1 个管道 的构建 失败 耗费 0 秒

打卡操作

... ... @@ -1447,8 +1447,14 @@ class SecondController extends RestBaseController
public function test(){
$data=[];
$openId='o-_vH5TbLrdztwa7nzj5Ocei-hdY';
$data=[
'phrase1' => ['value' =>$missoin->mission_name], //审核结果
'thing2'=>['value'=>$missoin->start_times], //活动名称
'thing4'=>['value'=>$address], //备注
'date7'=>['value'=>$address] //审核时间
];
$Info=sendSubMessage($data,$openId);
dump($Info);
}
... ...
... ... @@ -429,6 +429,16 @@ class VolunteerController extends AdminBaseController
$update['stage']='1';
$result=\db('volunteer')->where('id',$id)->update($update);
if ($result>0){
$date=date('Y-m-d H:i');
$volunteer=\db('volunteer')->where('id',$id)->find();
$openId=\db('third_party_user')->where('user_id',$volunteer['user_id'])->value('openid');
$data=[
'phrase1' => ['value' =>'审核通过'], //审核结果
'thing2'=>['value'=>'申请白求恩志愿者审核'], //活动名称
'thing4'=>['value'=>'审核通过'], //备注
'date7'=>['value'=>$date] //审核时间
];
$Info=sendSubMessage($data,$openId);
$this->success('编辑成功!');
}else{
$this->error('编辑失败');
... ...
... ... @@ -164,7 +164,5 @@
}
}
</script>
</html>
\ No newline at end of file
... ...