1234567891011121314151617181920212223 |
- <?php namespace Api\Lib;
- use Dever;
- class Api extends Platform
- {
- protected $type = 'api';
- # 执行某个接口
- public function run($id, $param = array())
- {
- $state = $this->setting($id, $param);
- if (!$state) {
- return $state;
- }
- return $this->curl();
- }
- # 生成回调
- protected function createNotify($order_num)
- {
- $encode = \Dever\Helper\Str::encode($this->info['id'] . '|' . $order_num);
- return Dever::url('api/notify.common', array('s' => $encode));
- }
- }
|