<?php namespace app\service\pay_user; use app\common\model\User; class PayUserMoney extends PayUser { function payment($amount, User $user,$type,$memo='', $extra = []) { $user::money($amount,$user['id'],$type,$memo,$extra); } }