终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
562 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BPASmartClient.Helper
  8. {
  9. public class LocaPath:Singleton<LocaPath>
  10. {
  11. public string FilePath { get; set; } = string.Empty;
  12. public string Getpath(string name)
  13. {
  14. Directory.CreateDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $"{FilePath}\\JSON"));
  15. return $"{AppDomain.CurrentDomain.BaseDirectory}{FilePath}JSON\\{name}.json";
  16. }
  17. }
  18. }