NASER fix revert
This commit is contained in:
@@ -72,7 +72,7 @@ class Controller extends BaseController
|
|||||||
|
|
||||||
"sms" => [
|
"sms" => [
|
||||||
'user_name' => 'ysms1362',
|
'user_name' => 'ysms1362',
|
||||||
'password' => '1234@Abcgh',
|
'password' => 'tL4w0PfNy2()',
|
||||||
'sender' => '3000164545',
|
'sender' => '3000164545',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ use Illuminate\Support\Arr;
|
|||||||
use Illuminate\Support\Facades\Http;
|
use Illuminate\Support\Facades\Http;
|
||||||
use Illuminate\Support\Facades\Mail;
|
use Illuminate\Support\Facades\Mail;
|
||||||
use Morilog\Jalali\Jalalian;
|
use Morilog\Jalali\Jalalian;
|
||||||
|
use App\Http\Controllers\Admin\ProductController;
|
||||||
|
|
||||||
class ReportController extends Controller
|
class ReportController extends Controller
|
||||||
{
|
{
|
||||||
@@ -131,8 +132,12 @@ class ReportController extends Controller
|
|||||||
// } catch (\Exception $e) {$tala_ir = 0;}
|
// } catch (\Exception $e) {$tala_ir = 0;}
|
||||||
|
|
||||||
$main_product_id = Cnt::where('key', 'main_product')->first()['value'];
|
$main_product_id = Cnt::where('key', 'main_product')->first()['value'];
|
||||||
$pr_product = Product::find($main_product_id);
|
$refpricer = new ProductController();
|
||||||
$ref = Http::timeout(40)->get('https://garoosigholaktala.ir/server/refPricer', [])->json();
|
if ($refpricer->getPrice()) {
|
||||||
|
$ref = true;
|
||||||
|
} else {
|
||||||
|
$ref = false;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$taban_gohar = Http::timeout(2)->get('https://tabangohar.com/GheymatKhan/prices_in_table.html')->json();
|
$taban_gohar = Http::timeout(2)->get('https://tabangohar.com/GheymatKhan/prices_in_table.html')->json();
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ return[
|
|||||||
'0098'=>[
|
'0098'=>[
|
||||||
'active'=>true,
|
'active'=>true,
|
||||||
'user_name'=>'ysms1362',
|
'user_name'=>'ysms1362',
|
||||||
'password'=>'1234@Abcgh',
|
'password'=>'tL4w0PfNy2()',
|
||||||
'sender'=>'3000164545',
|
'sender'=>'3000164545',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user