QappPackage.php 602 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Modules\User\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class QappPackage extends Model
  5. {
  6. protected $table = 'qapp_package_info';
  7. protected $fillable =
  8. [
  9. 'package',
  10. 'channel_id',
  11. 'company',
  12. 'app_pay_merchat_id',
  13. 'h5_pay_merchat_id',
  14. 'ali_pay_merchat_id',
  15. ];
  16. static function getPackage($channel_id)
  17. {
  18. return self::where('channel_id',$channel_id)->first();
  19. }
  20. public static function getPackageByPackage($package)
  21. {
  22. return self::where('package', $package)->first();
  23. }
  24. }