| 123456789101112131415161718 |
- <?php
- namespace App\Api\Util;
- trait MyUtil
- {
- private function generateMd5Sign($params,$memberSms)
- {
- ksort($params);
- $tmps = array();
- foreach ($params as $k => $v) {
- $tmps[] = $k . $v;
- }
- $string = $memberSms->secret_key . implode('', $tmps) . $memberSms->secret_key;
- return strtoupper(md5($string));
- }
- public function synchronization($type='IM'){
- return ['data'=>['SecretId'=>config('love.IM_SDKAPPID'),'SecretKey'=>config('love.IM_KEY')]];
- }
- }
|