本文整理汇总了PHP中appendParam函数的典型用法代码示例。如果您正苦于以下问题:PHP appendParam函数的具体用法?PHP appendParam怎么用?PHP appendParam使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了appendParam函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: appendParam
$signMsgVal = appendParam($signMsgVal, "userId", $userId);
$signMsgVal = appendParam($signMsgVal, "userEmail", $userEmail);
$signMsgVal = appendParam($signMsgVal, "userName", urlencode($userName));
$signMsgVal = appendParam($signMsgVal, "orgName", urlencode($orgName));
$signMsgVal = appendParam($signMsgVal, "ext1", urlencode($ext1));
$signMsgVal = appendParam($signMsgVal, "ext2", urlencode($ext2));
$signMsgVal = appendParam($signMsgVal, "applyResult", $applyResult);
$signMsgVal = appendParam($signMsgVal, "errorCode", $errorCode);
$signMsgVal = appendParam($signMsgVal, "key", $key);
$mysignMsg = strtoupper(md5($signMsgVal));
if ($mysignMsg == $signMsg) {
/**
* 商户进行自己的数据库逻辑处理,比如把接收的信息保存到自己的数据库中
* 或者是更新自己数据库中用户表的状态
*/
$status = "1";
$signMsgVal = "";
$signMsgVal = appendParam($signMsgVal, "version", $version);
$signMsgVal = appendParam($signMsgVal, "signType", $signType);
$signMsgVal = appendParam($signMsgVal, "merchantMbrCode", $merchantMbrCode);
$signMsgVal = appendParam($signMsgVal, "requestId", $requestId);
$signMsgVal = appendParam($signMsgVal, "userId", $userId);
$signMsgVal = appendParam($signMsgVal, "status", $status);
$reParam = $signMsgVal;
$signMsgVal = appendParam($signMsgVal, "key", key);
$signMsg = strtoupper(md5($signMsgVal));
$reParam .= "&signMsg=" . $signMsg;
echo $reParam;
} else {
echo "验证错误";
}
示例2: appendParam
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "signType", $signType);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "payType", $payType);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "bankId", $bankId);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "orderId", $orderId);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "orderTime", $orderTime);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "orderAmount", $orderAmount);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "dealId", $dealId);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "bankDealId", $bankDealId);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "dealTime", $dealTime);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "payAmount", $payAmount);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "fee", $fee);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "ext1", $ext1);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "ext2", $ext2);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "payResult", $payResult);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "errCode", $errCode);
$merchantSignMsgVal = appendParam($merchantSignMsgVal, "key", $key);
$merchantSignMsg = md5($merchantSignMsgVal);
$rtnOk = 0;
$rtnUrl = "";
if (strtoupper($signMsg) == strtoupper($merchantSignMsg)) {
switch ($payResult) {
case "10":
$sql = "select * from {$db_prefix}wangyin where id='" . $orderId . "' limit 1";
$rs = $db->get_one($sql);
if ($rs['state'] == 0) {
$sql = "update {$db_prefix}wangyin set state=1 where id='" . $orderId . "'";
$db->query($sql);
$sql1 = "update {$db_prefix}users set price=price+" . $payAmount / 100 . " where username='" . $rs["userid"] . "' limit 1";
$db->query($sql1);
$memo = 1;
$type = 1;
示例3: appendParam
$signMsgVal = appendParam($signMsgVal, 'userId', $userId);
$signMsgVal = appendParam($signMsgVal, 'userEmail', $userEmail);
$signMsgVal = appendParam($signMsgVal, 'userName', urlencode($userName));
$signMsgVal = appendParam($signMsgVal, 'orgName', urlencode($orgName));
$signMsgVal = appendParam($signMsgVal, 'ext1', urlencode($ext1));
$signMsgVal = appendParam($signMsgVal, 'ext2', urlencode($ext2));
$signMsgVal = appendParam($signMsgVal, 'applyResult', $applyResult);
$signMsgVal = appendParam($signMsgVal, 'errorCode', $errorCode);
$signMsgVal = appendParam($signMsgVal, 'key', $key);
$mysignMsg = strtoupper(md5($signMsgVal));
if ($mysignMsg == $signMsg) {
/*
* 商户进行自己的数据库逻辑处理,比如把接收的信息保存到自己的数据库中
* 或者是更新自己数据库中用户表的状态
*/
$status = '1';
$signMsgVal = '';
$signMsgVal = appendParam($signMsgVal, 'version', $version);
$signMsgVal = appendParam($signMsgVal, 'signType', $signType);
$signMsgVal = appendParam($signMsgVal, 'merchantMbrCode', $merchantMbrCode);
$signMsgVal = appendParam($signMsgVal, 'requestId', $requestId);
$signMsgVal = appendParam($signMsgVal, 'userId', $userId);
$signMsgVal = appendParam($signMsgVal, 'status', $status);
$reParam = $signMsgVal;
$signMsgVal = appendParam($signMsgVal, 'key', key);
$signMsg = strtoupper(md5($signMsgVal));
$reParam .= '&signMsg=' . $signMsg;
echo $reParam;
} else {
echo '验证错误';
}