merge goldali with abshode_khanegi branch
This commit is contained in:
@@ -20,30 +20,4 @@ class Cnt extends Model
|
||||
protected $casts = [
|
||||
'value_json'=>'array'
|
||||
];
|
||||
/* public function goldir_login(){
|
||||
$mobile = self::where('key', 'goldir_mobile')->value('value');
|
||||
$password = self::where('key', 'goldir_password')->value('value');
|
||||
$goldir_base_url=Controller::Config('goldir_base_url')??'https://gold.ir';
|
||||
|
||||
$goldir = Http::withOptions([
|
||||
'curl' => [
|
||||
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
|
||||
CURLOPT_TCP_FASTOPEN => 1,
|
||||
]
|
||||
])
|
||||
->withoutVerifying()
|
||||
->post($goldir_base_url.'/server/auth/login', [
|
||||
'mobile' => $mobile,
|
||||
'password' => $password,
|
||||
'provider' => 'customer',
|
||||
'type_app' => 'client',
|
||||
])->json();
|
||||
|
||||
Cnt::where('key', 'goldir')->update([
|
||||
'value' => $goldir['access_token'],
|
||||
'updated_at' => now()
|
||||
]);
|
||||
return $goldir['access_token'];
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user