失败的订单

This commit is contained in:
wanyongkang
2020-10-16 17:45:04 +08:00
parent 3aadd03949
commit a2b249bece
5 changed files with 108 additions and 21 deletions

View File

@@ -1,4 +1,12 @@
<?php
/*
* @Descripttion:
* @version:
* @Author: kangkang
* @Date: 2020-09-30 17:32:46
* @LastEditors: kangkang
* @LastEditTime: 2020-10-16 11:14:25
*/
/**
* 浏览器友好的变量输出
* @param mixed $var 变量
@@ -7,8 +15,9 @@
* @param boolean $strict 是否严谨 默认为true
* @return void|string
*/
function dd($var, $echo=true, $label=null, $strict=true) {
echo(echoBase($var, $echo=true, $label=null, $strict=true));
function dd($var, $echo = true, $label = null, $strict = true)
{
echo (echoBase($var, $echo = true, $label = null, $strict = true));
exit;
}
@@ -20,11 +29,13 @@ function dd($var, $echo=true, $label=null, $strict=true) {
* @param boolean $strict 是否严谨 默认为true
* @return void|string
*/
function dump($var, $echo=true, $label=null, $strict=true) {
echo(echoBase($var, $echo=true, $label=null, $strict=true));
function dump($var, $echo = true, $label = null, $strict = true)
{
echo (echoBase($var, $echo = true, $label = null, $strict = true));
}
function echoBase($var, $echo=true, $label=null, $strict=true) {
function echoBase($var, $echo = true, $label = null, $strict = true)
{
$label = ($label === null) ? '' : rtrim($label) . ' ';
if (!$strict) {
if (ini_get('html_errors')) {
@@ -45,6 +56,14 @@ function echoBase($var, $echo=true, $label=null, $strict=true) {
return $output;
}
function JWTDecode($token,$_secret,$verify = true){
}
//接口返回函数
function result($data = [], $msg = '', $code = 10000)
{
$info = [
'Code' => $code,
'msg' => $msg,
'data' => $data,
];
echo json_encode($info);
die;
}