|
@@ -23,6 +23,8 @@ class Timedtask extends Api
|
|
|
foreach ($data as $k => $v) {
|
|
|
if((strtotime($v['createtime'])+$expirationTime*60*60)<time()){
|
|
|
\app\common\model\User::money($v['grain'],$v['uid'],'过期自动退还狗粮');
|
|
|
+ //发送微信模板消息
|
|
|
+ Apply::wxApplyMessage($v['nid'],$v['uid'],Date('Y-m-d H:i:s'),3);
|
|
|
$v->save(['status'=>3,'refund_grain'=>$v['grain']]);
|
|
|
}
|
|
|
}
|