Service.php 425 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\common\model\supplier;
  3. use app\common\model\BaseModel;
  4. /**
  5. * 供应商客服模型
  6. */
  7. class Service extends BaseModel
  8. {
  9. protected $pk = 'service_id';
  10. protected $name = 'supplier_service';
  11. /**
  12. * 详情
  13. */
  14. public static function detail($shop_supplier_id){
  15. return (new static())->where('shop_supplier_id', '=', $shop_supplier_id)->find();
  16. }
  17. }