Commit 5bea017d authored by jiangkebao's avatar jiangkebao

Merge branch 'product-rpc' into develop

parents 11f57dba f03e2565
<?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);
}
...@@ -719,6 +719,29 @@ if (!function_exists('check_diff_val')) { ...@@ -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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment