CustomPushConfigContents.php 528 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Modules\OfficialAccount\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class CustomPushConfigContents extends Model
  5. {
  6. protected $table = 'custom_push_config_contents';
  7. // protected $fillable = ['title','url','image','config_id','product_id'];
  8. /**
  9. * 获取文案内容
  10. */
  11. static function getCustomPushConfigContents()
  12. {
  13. $customPushConfigContents = self::select()->where(['status'=>1])->orderBy('id','asc')->get();
  14. return $customPushConfigContents;
  15. }
  16. }