\DtApp\ThinkLibrary\serviceKaShAngWl

卡商网 http://www.kashangwl.com/ Class KaShAngWl

Summary

Methods
Properties
Constants
__construct()
instance()
setCustomerId()
setCustomerKey()
setMethod()
param()
toArray()
No public properties found
No constants found
initialize()
$app
N/A
http()
createSign()
$api_url
$customer_id
$customer_key
$method
$param
$output
$time
N/A

Properties

$app

$app : \think\App

应用实例

Type

\think\App

$api_url

$api_url : string

接口地址

Type

string

$customer_id

$customer_id : 

商家编号、商家密钥

Type

$customer_key

$customer_key : 

商家编号、商家密钥

Type

$method

$method : string

待请求的链接

Type

string

$param

$param : 

需要发送的的参数

Type

$output

$output : 

响应内容

Type

$time

$time : integer

时间戳

Type

integer

Methods

__construct()

__construct(\think\App  $app) 

Service constructor.

Parameters

\think\App $app

instance()

instance(array  $args) : static

静态实例对象

Parameters

array $args

Returns

static

setCustomerId()

setCustomerId(string  $customer_id) : $this

设置商家编号

Parameters

string $customer_id

Returns

$this

setCustomerKey()

setCustomerKey(string  $customer_key) : $this

设置商家密钥

Parameters

string $customer_key

Returns

$this

toArray()

toArray() : array|mixed

Returns

array|mixed

initialize()

initialize() : $this

初始化服务

Returns

$this

http()

http() 

网络请求

createSign()

createSign() : string

签名

Returns

string