\lib\supplyApi

Api下单模块 Author:晴玖天 Creation:2020/4/24 0:19 Filename:Api.php

Summary

Methods
Properties
Constants
Submit()
replace()
SuppluCurl()
Curl()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

Submit()

Submit( $OrData,  $Goods) : mixed

Parameters

$OrData

//订单数据

$Goods

GoodsImage;

Returns

mixed —

replace()

replace( $Str,  $Order,  $Goods,  $Input, int  $Type = 1) : array|string|string[]

Parameters

$Str
$Order
$Goods
$Input
int $Type

内容替换

Returns

array|string|string[] —

SuppluCurl()

SuppluCurl( $url, int  $post, array  $Header = [], int  $headerType, int  $referer, int  $cookie, int  $ua, int  $nobaody) : bool|string

Parameters

$url

//URL链接

int $post

Post数据

array $Header
int $headerType
int $referer

伪造来路域名

int $cookie

CK数据

int $ua

环境模拟

int $nobaody

输出请求头信息

Returns

bool|string —

对接提交专用,此处提交的数据都会被记录!

Curl()

Curl( $url, int  $post, mixed  $Header = [], int  $referer, int  $cookie, int  $header, int  $ua, int  $nobaody) : bool|string

Parameters

$url

//URL链接

int $post

Post数据

mixed $Header
int $referer

伪造来路域名

int $cookie

CK数据

int $header

开启请求头

int $ua

环境模拟

int $nobaody

输出请求头信息

Returns

bool|string —

商品对接专用,此处不会被记录