海南旅游SAAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

55 lines
1.5 KiB

<?php
$arr = [
'full' => 2888,
'reduction' => 500
];
$obj = json_decode(json_encode($arr));
$obj->full = 111;
echo md5('lfyyhyz8888888888888888888888888');
//print_r(substr('202107301046364505117328-1', 0, 24));
/* 退款测试
$reqInfo = [
'out_refund_no' => '131811191610442717309',
'out_trade_no' => '20210722164514946742983',
'refund_account' => 'REFUND_SOURCE_RECHARGE_FUNDS',
'refund_fee' => 8800,
'refund_id' => '50000408942018111907145868882',
'refund_recv_accout' => '支付用户零钱',
'refund_request_source' => 'API',
'refund_status' => 'SUCCESS',
'settlement_refund_fee' => 8800,
'settlement_total_fee' => 8800,
'success_time' => date('Y-m-d H:i:s'),
'total_fee' => 8800,
'transaction_id' => '1004400740201409030005092168',
];
*/
/*$dbms='mysql'; //数据库类型
$host='mysql'; //数据库主机名
$dbName='hainan'; //使用的数据库
$user='root'; //数据库连接用户名
$pass=''; //对应的密码
$dsn="$dbms:host=$host;dbname=$dbName";
try {
$dbh = new PDO($dsn, $user, $pass); //初始化一个PDO对象
echo "连接成功<br/>";
foreach ($dbh->query('SELECT * from `notices`') as $row) {
print_r($row); //你可以用 echo($GLOBAL); 来看到这些值
}
$dbh = null;
} catch (PDOException $e) {
die ("Error!: " . $e->getMessage() . "<br/>");
}
//默认这个不是长连接,如果需要数据库长连接,需要最后加一个参数:array(PDO::ATTR_PERSISTENT => true) 变成这样:
$db = new PDO($dsn, $user, $pass);*/