作者 李宇航

合并分支 'master-server' 到 'master'

Master server



查看合并请求 !1238
@@ -306,7 +306,7 @@ class DownloadProject extends Command @@ -306,7 +306,7 @@ class DownloadProject extends Command
306 } 306 }
307 $arr[] = $content4; 307 $arr[] = $content4;
308 foreach ($arr as $key => $val){ 308 foreach ($arr as $key => $val){
309 - $content .= ($key+1).','.$val."/n"; 309 + $content .= ($key+1).','.$val."\n";
310 } 310 }
311 $timestamp = strtotime('tomorrow 9:00 AM'); 311 $timestamp = strtotime('tomorrow 9:00 AM');
312 $tomorrowNineAM = date('Y-m-d H:i:s', $timestamp); 312 $tomorrowNineAM = date('Y-m-d H:i:s', $timestamp);
@@ -314,7 +314,7 @@ class DownloadProject extends Command @@ -314,7 +314,7 @@ class DownloadProject extends Command
314 'project_id'=>$project_id, 314 'project_id'=>$project_id,
315 'friend_id'=>1, 315 'friend_id'=>1,
316 'type'=>MessagePush::TYPE_WEEK, 316 'type'=>MessagePush::TYPE_WEEK,
317 - 'content'=>"【全球搜V6.0周报】/n".$content, 317 + 'content'=>"【全球搜V6.0周报】"."\n".$content,
318 'ref_ids'=>'', 318 'ref_ids'=>'',
319 'send_time'=>$tomorrowNineAM, 319 'send_time'=>$tomorrowNineAM,
320 'status'=>3, 320 'status'=>3,
@@ -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 ];