mirror of
https://gitee.com/yansongda/pay.git
synced 2024-12-05 13:48:53 +08:00
fix some bugs
This commit is contained in:
parent
edce78a5f9
commit
f9807acd6e
@ -98,11 +98,9 @@ class Support
|
||||
*/
|
||||
public static function filterPayload($payload, $order, $config)
|
||||
{
|
||||
$payload['out_trade_no'] = is_array($order) ? '' : $order;
|
||||
$payload = array_merge($payload, is_array($order) ? $order : ['out_trade_no' => $order]);
|
||||
|
||||
$payload = array_merge($payload, $order);
|
||||
|
||||
$type = isset($order['type']) ? ($order['type'].($order['type'] != 'app' ?: '_').'id') : 'app_id';
|
||||
$type = isset($order['type']) ? ($order['type'].($order['type'] == 'app' ?: '_').'id') : 'app_id';
|
||||
|
||||
$payload['appid'] = $config->get($type, '');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user