mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-02-10 14:58:41 +00:00
fix billing process
This commit is contained in:
parent
769bc2d0e2
commit
6289f90cb3
14
.github/user_bug_report.md
vendored
14
.github/user_bug_report.md
vendored
|
|
@ -8,9 +8,11 @@ assignees: ''
|
|||
---
|
||||
|
||||
# Bug Description
|
||||
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
# How to Reproduce
|
||||
|
||||
Steps to reproduce the behavior:
|
||||
|
||||
1. Go to '...'
|
||||
|
|
@ -19,16 +21,20 @@ Steps to reproduce the behavior:
|
|||
4. See error
|
||||
|
||||
# Expected Behavior
|
||||
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
# Screenshots
|
||||
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
# System Information
|
||||
- System: [e.g. PC or iPhone11, ...]
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- KarakaVersion [e.g. 22]
|
||||
|
||||
- System: [e.g. PC or iPhone11, ...]
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- KarakaVersion [e.g. 22]
|
||||
|
||||
# Additional Information
|
||||
|
||||
Add any other context about the problem here.
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ final class ApiController extends Controller
|
|||
require_once $path;
|
||||
|
||||
$remoteConnection = new NullConnection();
|
||||
if (!empty($request->getData('dbtype'))) {
|
||||
if ($request->hasData('dbtype')) {
|
||||
$remoteConnection = ConnectionFactory::create([
|
||||
'db' => (string) $request->getData('dbtype'),
|
||||
'host' => $request->getDataString('dbhost'),
|
||||
|
|
@ -150,7 +150,7 @@ final class ApiController extends Controller
|
|||
private function validateInterfaceInstall(RequestAbstract $request) : array
|
||||
{
|
||||
$val = [];
|
||||
if (($val['title'] = empty($request->getData('title')))
|
||||
if (($val['title'] = !$request->hasData('title'))
|
||||
|| ($val['files'] = empty($request->getFiles()))
|
||||
) {
|
||||
return $val;
|
||||
|
|
@ -404,9 +404,9 @@ final class ApiController extends Controller
|
|||
private function validateSettingCreate(RequestAbstract $request) : array
|
||||
{
|
||||
$val = [];
|
||||
if (($val['title'] = empty($request->getData('title')))
|
||||
|| ($val['id'] = empty($request->getData('id')))
|
||||
|| ($val['data'] = empty($request->getData('data')))
|
||||
if (($val['title'] = !$request->hasData('title'))
|
||||
|| ($val['id'] = !$request->hasData('id'))
|
||||
|| ($val['data'] = !$request->hasData('data'))
|
||||
) {
|
||||
return $val;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
|
||||
$permission = new AccountPermission();
|
||||
$permission->setUnit(1);
|
||||
$permission->setApp('backend');
|
||||
$permission->setApp(2);
|
||||
$permission->setPermission(
|
||||
PermissionType::READ
|
||||
| PermissionType::CREATE
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user