src/Gateways/Wechat/Support.php
public static function getSignContent($data): string
    {
        $buff = '';

        foreach ($data as $k => $v) {
            $buff .= ($k != 'sign' && $v != '' && !is_array($v)) ? $k.'='.$v.'&' : '';
        }

        Log::debug('Wechat Generate Sign Content Before Trim', [$data, $buff]);

        return trim($buff, '&');
    }
public static function getSignContent($data): string
    {
        $buff = '';

        foreach ($data as $k => $v) {
            $buff .= ($k != 'sign' && $v != '' && !is_array($v)) ? $k.'='.$v.'&' : '';
        }

        Log::debug('Wechat Generate Sign Content Before Trim', [$data, $buff]);

        return trim($buff, '&');
    }
public static function getSignContent ( $ data ) : string { $ buff = '' ; foreach ( $ data as $ k => $ v ) { $ buff .= ( $ k != 'sign' && $ v != '' && ! is_array ( $ v ) ) ? $ k . '=' . $ v . '&' : '' ; } Log :: debug ( 'Wechat Generate Sign Content Before Trim' , [ $ data , $ buff ] ) ; return trim ( $ buff , '&' ) ; }
Generate sign content.

@author yansongda <me@yansongda.cn>

@param array $data

@return string
Generate sign content .