Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bolechen/gongmall-php-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
bolechen committed Aug 16, 2019
2 parents 2df1de4 + 3808a12 commit 34d024f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private function createNonceStr($length = 16)
{
$chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
$str = '';
for ($i = 0; $i < $length; ++$i) {
for ($i = 0; $i < $length; $i++) {
$str .= substr($chars, mt_rand(0, strlen($chars) - 1), 1);
}

Expand Down
12 changes: 6 additions & 6 deletions tests/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@

// Config for test only
return [
'apiKey' => '58ead180d70a49048c8df010124fb9d7',
'apiSecret' => '9f4cd5294355e37a75168036eb82c4db',
'apiKey' => '58ead180d70a49048c8df010124fb9d7',
'apiSecret' => '9f4cd5294355e37a75168036eb82c4db',
'contractUrl' => 'https://contract-qa.gongmall.com/url_contract.html?companyId=qP3gZP&positionId=4Pmp2V',

'debug' => true, // 输出日志
'debug' => true, // 输出日志
'sandbox' => true, //沙盒

'log' => [
'name' => 'gongmall',
'file' => __DIR__.'/gongmall.log',
'level' => 'debug',
'name' => 'gongmall',
'file' => __DIR__.'/gongmall.log',
'level' => 'debug',
'permission' => 0777,
],
];

0 comments on commit 34d024f

Please sign in to comment.