\App\Http\Controllers\AdminUserController

Class UserController

Summary

Methods
Properties
Constants
checkSms()
createCode()
createMiniCode()
request_post()
request_get()
simpleResult()
return_error()
_getInputData()
index()
edit()
changeAttributes()
delete()
data_replace()
sex()
toArray()
id_card_type()
login()
store()
update()
destroy()
No public properties found
No constants found
success()
error()
resultz()
return_success()
No protected properties found
N/A
No private methods found
No private properties found
N/A

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

store()

store(\Illuminate\Http\Request  $request) 

Parameters

\Illuminate\Http\Request $request

update()

update(\Illuminate\Http\Request  $request) 

Parameters

\Illuminate\Http\Request $request

destroy()

destroy(  $id) 

Parameters

$id

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