mail-template.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [MailTemplateConf]
  2. SignTmplTitle = """[签约Up即将到期]{{Now.Format "2006-01-02"}}"""
  3. SignTmplContent = """
  4. <html>
  5. <body>
  6. <h4>您有以下签约即将到期,请尽快去<a href="http://up-profit.bilibili.co/allowance/#/contract-manage/all-contracts">【up主CRM-签约管理】查看</a></h4>
  7. <table border="1">
  8. <tr>
  9. <td>签约id</td>
  10. <td>昵称</td>
  11. <td>uid</td>
  12. <td>到期时间</td>
  13. </tr>
  14. {{range .}}
  15. <tr>
  16. <td>{{.ID}}</td>
  17. <td>{{.Name}}</td>
  18. <td>{{.Mid}}</td>
  19. <td>{{.EndDate.Time.Format "2006-01-02"}}</td>
  20. </tr>
  21. {{end}}
  22. </table>
  23. </body>
  24. </html>
  25. """
  26. PayTmplTitle = """"[签约Up付款即将到期]{{Now.Format "2006-01-02"}}"""
  27. PayTmplContent = """
  28. <html>
  29. <body>
  30. <h4>您有以下付款即将到期,请尽快去<a href="http://up-profit.bilibili.co/allowance/#/contract-manage/all-contracts">【up主CRM-签约管理】查看</a></h4>
  31. <table border=1>
  32. <tr>
  33. <td>签约id</td>
  34. <td>昵称</td>
  35. <td>uid</td>
  36. <td>到期时间</td>
  37. <td>金额</td>
  38. </tr>
  39. {{range .}}
  40. <tr>
  41. <td>{{.SignID}}</td>
  42. <td>{{.Name}}</td>
  43. <td>{{.Mid}}</td>
  44. <td>{{.DueDate.Time.Format "2006-01-02"}}</td>
  45. <td>{{printf "%.2f" .GetPayValue}}</td>
  46. </tr>
  47. {{end}}
  48. </table>
  49. </body>
  50. </html>"""
  51. TaskTmplTitle = """[签约Up任务还未完成]{{Now.Format "2006-01-02"}}"""
  52. TaskTmplContent = """
  53. <html>
  54. <body>
  55. 您录入的签约up主任务还未完成,请尽快去<a href="http://up-profit.bilibili.co/allowance/#/contract-manage/all-contracts">【up主CRM-签约管理】查看</a>
  56. <table border=1>
  57. <tr>
  58. <td>签约id</td>
  59. <td>昵称</td>
  60. <td>uid</td>
  61. <td>到期时间</td>
  62. <td>状态</td>
  63. </tr>
  64. {{range .}}
  65. <tr>
  66. <td>{{.SignID}}</td>
  67. <td>{{.Name}}</td>
  68. <td>{{.Mid}}</td>
  69. <td>{{(.EndDate.Time.AddDate 0 0 -1).Format "2006-01-02"}}</td>
  70. <td>{{(printf "%s投稿 %d/%d" .TypeDesc .TaskCounter .TaskCondition)}}</td>
  71. </tr>
  72. {{end}}
  73. </table>
  74. </body>
  75. </html>"""