游戏充值抵扣情况

master
tping 5 years ago
parent 1d5ff7a4de
commit 4cc0520eff

@ -861,8 +861,8 @@ class NotifyController extends BaseController
public function yeepay_callback() {
require_once("ThinkPHP/Library/Org/YeepaySDK/lib/Util/YopSignUtils.php");
Log::write(serialize($_REQUEST), Log::DEBUG);
$yop_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6p0XWjscY+gsyqKRhw9MeLsEmhFdBRhT2emOck/F1Omw38ZWhJxh9kDfs5HzFJMrVozgU+SJFDONxs8UB0wMILKRmqfLcfClG9MyCNuJkkfm0HFQv1hRGdOvZPXj3Bckuwa7FrEXBRYUhK7vJ40afumspthmse6bs6mZxNn/mALZ2X07uznOrrc2rk41Y2HftduxZw6T4EmtWuN2x4CZ8gwSyPAW5ZzZJLQ6tZDojBK4GZTAGhnn3bg5bBsBlw2+FLkCQBuDsJVsFPiGh/b6K/+zGTvWyUcu+LUj2MejYQELDO3i2vQXVDk7lVi2/TcUYefvIcssnzsfCfjaorxsuwIDAQAB";
$private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDKLgI+64mmJdNg1TwlCPBnNH3b3qfw2TdHVc2uDd4LTyQI8nRr0heFhhdj0OZi6agqekIyzAH/XmO9PdLrTi4YXJXOfiO/dYwKA6gSktRe6FKY4C2WzX1yA4fGfqJMV7RYVoL6In50Hur6rGnavNSQZqbiDJOgy5yokJ14Mey1iMqqqWvADtKN9SqxtbyIxYD/jj/6qLWwmu88wSwSaGdO3wNFgzajsHgRJe9G9IhD0zr5d72HvJGoedq7VaPn3jhIszcPQE6oqbXAddZRGKBehA4WSCjLEl87XH33zZPrxrQlBTHVVGzfxjbB4QvYz0hlEoWh1ntxeDHTfgyhdPQpAgMBAAECggEATmxMSLW6Xe08McpkmwT9ozq0Oy4BvKW1EIGS15nfcEmRc7sAN7Z1k0BxIDGuu91gcqGbvfJuL+0gCQ7LGqTnsmFvZnp9SU3CNTw33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MQ09hwsYukQ4bblrwfBUmRjLN5WibcRzIW5ZA=";
$yop_public_key = C('yeepay.yop_public_key');
$private_key = C('yeepay.private_key');
$source = $_REQUEST['response'];
$sourceData = \YopSignUtils::decrypt($source, $private_key, $yop_public_key);

@ -553,12 +553,16 @@ class ShortcutController extends BaseController{
}
$yeepay = new Yeepay();
$data['appKey'] = C('yeepay.key');
$data['privateKey'] = C('yeepay.private_key');
$data['parentMerchantNo'] = C('yeepay.parent_merchant');
$data['merchantNo'] = C('yeepay.partner');
$data['orderId'] = $request['pay_order_number'];
$data['orderAmount'] = $pay_amount;
$data['orderAmount'] = $request['price'];
$data['notifyUrl'] = C('PAY_DOMAIN')."/callback.php/Notify/yeepay_callback";
$data['goodsParamExt'] = '{"goodsName":"游戏充值","goodsDesc":"充值"}';
$data['memo'] = "游戏充值-{$request['pay_order_number']}";
$data['redirectUrl'] = C('PAY_DOMAIN').U('Spend/paycallback',array('status'=> 1, 'orderno' => $payInfo['order_id'], 'user_id'=>I('user_id'),'game_id'=>I('game_id')));
/* $bankCardNo = I('bankCardNo', '');
$idCardNo = I('idCardNo', '');
$cardName = I('cardName', '');

@ -18,7 +18,11 @@ class Yeepay
}
include 'conf.php';
$request = new \YopRequest($appKey, $private_key);
$appKey = $data['appKey'];
$privateKey = $data['privateKey'];
$parentMerchantNo = $data['parentMerchantNo'];
$merchantNo = $data['merchantNo'];
$request = new \YopRequest($appKey, $privateKey);
$request->addParam("parentMerchantNo", $parentMerchantNo);
$request->addParam("merchantNo", $merchantNo);
$request->addParam("orderId", $data['orderId']);

Loading…
Cancel
Save