|
@@ 23-27 (lines=5) @@
|
| 20 |
|
*/ |
| 21 |
|
public function create($scene_id = 0, $expire_seconds = 30) |
| 22 |
|
{ |
| 23 |
|
if (!is_numeric($scene_id) || $scene_id < 0 || $scene_id > 4294967295) { |
| 24 |
|
$this->setError('scene_id 必须为整数,且 不能 小于 0 大于 4294967295'); |
| 25 |
|
|
| 26 |
|
return false; |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
if (!is_numeric($expire_seconds) || $expire_seconds < 0 || $expire_seconds > 2592000) { |
| 30 |
|
$this->setError('expire_seconds 必须为整数,且 不能 小于 0 大于 2592000'); |
|
@@ 59-63 (lines=5) @@
|
| 56 |
|
*/ |
| 57 |
|
public function createLimitInt($scene_id = 0) |
| 58 |
|
{ |
| 59 |
|
if (!is_numeric($scene_id) || $scene_id < 0 || $scene_id > 4294967295) { |
| 60 |
|
$this->setError('scene_id 必须为整数,且 不能 小于 0 大于 4294967295'); |
| 61 |
|
|
| 62 |
|
return false; |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
$queryStr = [ |
| 66 |
|
'action_name' => 'QR_LIMIT_SCENE', |