dumpCSV: add BOM to prevent Chinese garbled in Excel

Signed-off-by: Beta Soft <betaxab@gmail.com>
This commit is contained in:
Beta Soft 2020-10-09 08:29:42 +08:00
parent 2ede0f3f17
commit 575bbe5174
No known key found for this signature in database
GPG Key ID: 180A31AB98D5C156

View File

@ -133,7 +133,7 @@ class UserController extends Controller
$subscribeUrl = $baseUrl . '/api/v1/client/subscribe?token=' . $user['token'];
$data .= "{$user['email']},{$balance},{$commissionBalance},{$transferEnable},{$notUseFlow},{$expireDate},{$planName},{$subscribeUrl}\r\n";
}
echo $data;
echo "\xEF\xBB\xBF" . $data;
}
public function generate(UserGenerate $request)