|
|
|
@ -51,7 +51,9 @@ class ScriptController extends BaseController |
|
|
|
$this->save($wordname); |
|
|
|
|
|
|
|
//设置信息
|
|
|
|
file_put_contents($artSrc . '/c_message.txt', $value['id'] . "\r\n" .$value['title']); |
|
|
|
$messageContent = $value['id'] . "\r\n" .$value['title']; |
|
|
|
$messageContent = mb_convert_encoding($messageContent, 'GB2312', mb_detect_encoding($messageContent)); |
|
|
|
file_put_contents($artSrc . '/c_message.txt', $messageContent); |
|
|
|
|
|
|
|
//设置账号
|
|
|
|
|
|
|
|
@ -117,7 +119,7 @@ xmlns="http://www.w3.org/TR/REC-html40">'; |
|
|
|
$accounts = Expert::where('id', 'in', $accountIds)->field("*")->select()->toArray(); |
|
|
|
|
|
|
|
foreach($accounts as $item){ |
|
|
|
$content[] = $item['platform_code'] . '|' . $item['script_x'] . '|' . $item['script_y']; |
|
|
|
$content[] = $item['platform_code'] . ',' . $item['script_x'] . ',' . $item['script_y']; |
|
|
|
} |
|
|
|
|
|
|
|
return implode("\r\n", $content); |
|
|
|
|