Methods

checkSms()

checkSms(  $phone,   $code) : boolean

Created by PhpStorm.

User: 王文杰 Date: 2021/5/7 Remark:

Parameters

$phone
$code

Throws

\Exception

Returns

boolean

createCode()

createCode(  $str,   $way,   $param, string  $route = 'qrcode', integer  $size = 150, integer  $margin = 10) : string

Created by PhpStorm.

User: 王文杰 Date: 2021/5/21 Remark:

Parameters

$str
$way
$param
string $route
integer $size
integer $margin

Throws

\Exception

Returns

string

createMiniCode()

createMiniCode(  $product_id, string  $app_post, string  $page,   $uid) : boolean

Created by PhpStorm.

User: 王文杰 Date: 2021/5/31 Remark:生成小程序二维码

Parameters

$product_id
string $app_post
string $page
$uid

Throws

\Exception

Returns

boolean —

需要携带参数 jump_s 判断是否是二维码跳转 app_port wholesaler(计调员端) distributor(分销商端) user_id 生成二维码的用户id

request_post()

request_post(  $url,   $header, array  $data = array()) : boolean|string

Created by PhpStorm.

User: 王文杰 Date: 2021/5/25 Remark:

Parameters

$url
$header
array $data

Returns

boolean|string

request_get()

request_get(  $url) : boolean|string

Created by PhpStorm.

User: 王文杰 Date: 2021/5/31 Remark:get请求

Parameters

$url

Returns

boolean|string

simpleResult()

simpleResult() 

2021/4/25--2:07 下午

return_error()

return_error(  $msg = 'request fail.',   $data = array(), \App\traits\int  $code = 400, array  $header = array()) 

Parameters

$msg
$data
\App\traits\int $code
array $header

_getInputData()

_getInputData(  $input) : array

2021/5/15--1:52 下午

Parameters

$input

Returns

array

index()

index() 

edit()

edit() 

2021/4/9--12:24 下午

changeAttributes()

changeAttributes() : mixed

2021/4/9--12:24 下午

Returns

mixed

delete()

delete() : mixed

2021/4/9--4:19 下午

Returns

mixed

data_replace()

data_replace(  $data) 

2021/6/9--2:29 下午

Parameters

$data

sex()

sex(  $num) 

2021/6/9--2:29 下午

Parameters

$num

toArray()

toArray(  $data) 

2021/6/9--2:38 下午

Parameters

$data

id_card_type()

id_card_type(  $type) 

2021/6/9--2:46 下午

Parameters

$type

img_url()

img_url() 

getProduct()

getProduct() 

qr()

qr(  $id,   $ids) 

Parameters

$id
$ids

productEdit()

productEdit(  $id,   $ids) 

Parameters

$id
$ids

saveImg()

saveImg(\Illuminate\Http\Request  $request) 

Parameters

\Illuminate\Http\Request $request

store()

store(\App\Models\Wholesaler\Poster  $Poster, \Illuminate\Http\Request  $request) 

Parameters

\App\Models\Wholesaler\Poster $Poster
\Illuminate\Http\Request $request

success()

success(array  $data = array(), string  $msg = 'request success.', array  $extend = array(), integer  $code = 200, array  $header = array()) 

2021/4/25--2:08 下午

Parameters

array $data
string $msg
array $extend
integer $code
array $header

error()

error(string  $msg = 'request fail.', array  $data = array(), integer  $code = 400, array  $header = array()) 

2021/4/25--2:09 下午

Parameters

string $msg
array $data
integer $code
array $header

resultz()

resultz(  $pager) 

Parameters

$pager

return_success()

return_success(  $data = array(),   $msg = 'request success.',   $extend = array(), \App\traits\int  $code = 200, array  $header = array()) 

Parameters

$data
$msg
$extend
\App\traits\int $code
array $header