新版订单消耗系统

StatementsComplement.php 551B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: shensong
  5. * Date: 2021/5/25
  6. * Time: 15:30
  7. */
  8. namespace App\Models;
  9. use Illuminate\Database\Eloquent\Model;
  10. class StatementsComplement extends Model
  11. {
  12. public $timestamps = false;
  13. protected $table = 'statements_complement';
  14. public static function getStatementsEnableStatus($statementsData, $user)
  15. {
  16. if ($user->role_id == 15) {
  17. return [2,3];
  18. } else if ($user->role_id == 10) {
  19. return [4,5];
  20. } else {
  21. return [];
  22. }
  23. }
  24. }