SystemMemberWechatTpl.php 525 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 https://www.sapixx.com All rights reserved.
  4. * @license Licensed (http://www.apache.org/licenses/LICENSE-2.0).
  5. * @author pillar<ltmn@qq.com>
  6. *
  7. * 微信模板ID设置
  8. */
  9. namespace app\common\model;
  10. use think\Model;
  11. class SystemMemberWechatTpl extends Model{
  12. protected $pk = 'id';
  13. //微信模板ID配置表
  14. public static function getConfig(int $miniapp_id){
  15. return self::where(['member_miniapp_id' => $miniapp_id])->find();
  16. }
  17. }