作者 lyh

gx脚本

@@ -239,13 +239,14 @@ class WeekProject extends Command @@ -239,13 +239,14 @@ class WeekProject extends Command
239 foreach ($arr as $key => $val){ 239 foreach ($arr as $key => $val){
240 $content .= ($key + 1) .','.$val; 240 $content .= ($key + 1) .','.$val;
241 } 241 }
  242 +
242 $timestamp = strtotime('tomorrow 9:00 AM'); 243 $timestamp = strtotime('tomorrow 9:00 AM');
243 $tomorrowNineAM = date('Y-m-d H:i:s', $timestamp); 244 $tomorrowNineAM = date('Y-m-d H:i:s', $timestamp);
244 $param = [ 245 $param = [
245 'project_id'=>$project_id, 246 'project_id'=>$project_id,
246 'friend_id'=>$friend_id, 247 'friend_id'=>$friend_id,
247 'type'=>MessagePush::TYPE_WEEK, 248 'type'=>MessagePush::TYPE_WEEK,
248 - 'content'=>$content, 249 + 'content'=>'【全球搜V6.0周报】'.$content,
249 'ref_ids'=>'', 250 'ref_ids'=>'',
250 'send_time'=>$tomorrowNineAM 251 'send_time'=>$tomorrowNineAM
251 ]; 252 ];