YqMove.php 618 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Modules\User\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class YqMove extends Model
  5. {
  6. protected $table = 'yq_move';
  7. protected $fillable = [
  8. 'yq_uid',
  9. 'zsy_uid',
  10. 'yq_distribution_channel_id',
  11. 'zsy_distribution_channel_id',
  12. 'read_count',
  13. 'yq_balance',
  14. 'is_pay',
  15. 'pay_for_balance',
  16. 'openid',
  17. 'appid'
  18. ]
  19. ;
  20. static public function getUser($distribution_channel_id,$openid){
  21. return self::where(['zsy_distribution_channel_id'=>$distribution_channel_id,'openid'=>$openid])->first();
  22. }
  23. }