调整云仓商品列表查询

This commit is contained in:
luofei 2023-05-25 18:03:26 +08:00
parent fd91c2823d
commit 888f425162
2 changed files with 7 additions and 4 deletions

View File

@ -31,6 +31,7 @@ use crmeb\basic\BaseController;
use app\validate\api\StoreCartValidate as validate;
use app\common\repositories\store\order\StoreCartRepository as repository;
use think\exception\ValidateException;
use think\facade\Log;
class StoreCart extends BaseController
{
@ -73,8 +74,12 @@ class StoreCart extends BaseController
if (strrpos($data['referer'], '==') === false) {
$data['referer'] .= '==';
}
$decrypt = AesUtils::decrypt($data['referer'], env('app_key'));
$decryptArray = explode('|', $decrypt);
try {
$decrypt = AesUtils::decrypt($data['referer'], env('app_key'));
$decryptArray = explode('|', $decrypt);
} catch (\Exception $e) {
Log::info('decrypt fail');
}
}
$entryMerId = $decryptArray[0] ?? '';
if(!in_array($data['product_type'],[0,1,2,3,4,98])) return app('json')->fail('商品类型错误');

View File

@ -44,6 +44,4 @@ return [
'error_message' => '页面错误!请稍后再试~',
// 显示错误信息
'show_error_msg' => false,
//应用加解密秘钥
'app_secret' => '789XH80PTSb8pHjH',
];