You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<?php
|
|
|
|
|
defined('BASE_PATH') OR exit('No direct script access allowed');
|
|
|
|
|
|
|
|
|
|
class cod
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 生成支付代码
|
|
|
|
|
* @param array $order 订单信息
|
|
|
|
|
* @param array $payment 支付方式信息
|
|
|
|
|
*/
|
|
|
|
|
public function get_code($order, $payment)
|
|
|
|
|
{
|
|
|
|
|
return '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 处理函数
|
|
|
|
|
*/
|
|
|
|
|
public function response()
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 同步通知
|
|
|
|
|
* @param $data
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
|
|
|
|
public function callback($data)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 异步通知
|
|
|
|
|
* @param $data
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
|
|
|
|
public function notify($data)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 订单查询
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
|
|
|
|
public function query($order, $payment)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|