作者 lyh

gx脚本

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