Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-micro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
without authentication
meibuyu-micro
Commits
5bea017d
Commit
5bea017d
authored
Aug 25, 2020
by
jiangkebao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product-rpc' into develop
parents
11f57dba
f03e2565
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
ShopifyServiceInterface.php
src/Service/Interfaces/Order/ShopifyServiceInterface.php
+17
-0
functions.php
src/functions.php
+23
-0
No files found.
src/Service/Interfaces/Order/ShopifyServiceInterface.php
0 → 100644
View file @
5bea017d
<?php
/**
* Created by PhpStorm.
* User: 姜克保
* Date: 2020/5/20
* Time: 15:48
*/
namespace
Meibuyu\Micro\Service\Interfaces\Order
;
use
phpDocumentor\Reflection\Types\Void_
;
interface
ShopifyServiceInterface
{
public
function
pushOrder
(
$topic
,
$json
);
}
src/functions.php
View file @
5bea017d
...
...
@@ -719,6 +719,29 @@ if (!function_exists('check_diff_val')) {
}
}
if
(
!
function_exists
(
'to_camel_case'
))
{
/**
* 下划线命名转驼峰命名
* 例:demo_function : demoFunction
* @param $dirSep 分隔符
* @param $str
* @return mixed|string
*/
function
to_camel_case
(
$dirSep
,
$str
)
{
$array
=
explode
(
$dirSep
,
$str
);
$result
=
$array
[
0
];
$len
=
count
(
$array
);
if
(
$len
>
1
)
{
for
(
$i
=
1
;
$i
<
$len
;
$i
++
)
{
$result
.=
ucfirst
(
$array
[
$i
]);
}
}
return
$result
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment