Commit f03e2565 authored by jiangkebao's avatar jiangkebao
Browse files

添加shopify订单rpc

parent 11a5333f
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
<?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);
}
+23 −0
Original line number Diff line number Diff line
@@ -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;
    }
}