| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace common\logic\middleground;
- use common\logic\middleground\base\ApiAbstract;
- use common\models\common\MiddleMch;
- /**
- * 使用时
- * $mch = MiddleMch::getMch($mall_id);
- * $api = new DemoApi($mch)
- */
- class DemoApi extends ApiAbstract
- {
- public function __construct (MiddleMch $mch)
- {
- parent::__construct($mch);
- }
- public $api_list = [
- 'pay'=>'hj/order/create',
- ];
- public function pay($param){
- $res = $this->request($this->getFullUrl(__FUNCTION__),array_filter($param),'post');
- }
- public function requestHandel($data){
- }
- }
|