生成用户收货码

This commit is contained in:
yaooo 2023-08-10 11:56:41 +08:00
parent 7e80444924
commit c1e0454775

View File

@ -55,11 +55,8 @@ class Auth extends BaseController
{
public function dotest()
{
$code = random_int(1000, 9999);
$res = app()->make(StoreOrderRepository::class)->update(0, [
'logistics_code' => $code
]);
return app('json')->success($res);
//SmsService::create()->send($data['phone'], 'VERIFICATION_CODE', ['code' => $sms_code, 'time' => $sms_time]);
return app('json')->success();
}
public function test()