DemoApi.php 602 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace common\logic\middleground;
  3. use common\logic\middleground\base\ApiAbstract;
  4. use common\models\common\MiddleMch;
  5. /**
  6. * 使用时
  7. * $mch = MiddleMch::getMch($mall_id);
  8. * $api = new DemoApi($mch)
  9. */
  10. class DemoApi extends ApiAbstract
  11. {
  12. public function __construct (MiddleMch $mch)
  13. {
  14. parent::__construct($mch);
  15. }
  16. public $api_list = [
  17. 'pay'=>'hj/order/create',
  18. ];
  19. public function pay($param){
  20. $res = $this->request($this->getFullUrl(__FUNCTION__),array_filter($param),'post');
  21. }
  22. public function requestHandel($data){
  23. }
  24. }