This commit is contained in:
Your Name 2025-09-02 09:09:40 +00:00
parent 99ac9bb92b
commit 145e75f837
9 changed files with 43177 additions and 18 deletions

View File

@ -0,0 +1,58 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use Illuminate\Support\Carbon;
use App\Models\PraskaAccountAlert;
use App\Models\PraskaProduct;
use App\Http\Controllers\Admin\PriceController;
class PraskaCommand extends Command
{
/**
* اسم و نحوه اجرای کماند
*
* @var string
*/
protected $signature = 'praska {value}';
/**
* توضیح کماند
*
* @var string
*/
protected $description = 'Return the given variable';
/**
* اجرای کماند
*/
public function handle()
{
$value = $this->argument('value');
$this->info($value);
switch ($value) {
case "refPrice":
$this->refPrice();
break;
default:
$this->info("No valid action selected.");
}
}
private function refPrice()
{
$priceController = new PriceController();
while (true){
$r= $priceController->b750(); // Direct method call
$this->info("Executed b750 $r");
sleep(3);
}
}
}

View File

@ -116,14 +116,7 @@ class Controller extends BaseController
}
public static function trigerUrl()
{
$trigerUrl = env('wssLink','');
if ($_SERVER['HTTP_HOST'] == 'emexgold.com') {
$trigerUrl = 'https://emexgold.com';
}elseif ($_SERVER['HTTP_HOST'] == 'marandiigold.ir'){
$trigerUrl = 'https://ws.marandiigold.ir';
}elseif ($_SERVER['HTTP_HOST'] == 'sepidehgold.com'){
$trigerUrl = 'https://ws.sepidehgold.com';
}
$trigerUrl = env('wssLink','')??'https://ws.liman.gold';
return $trigerUrl;
}

View File

@ -14,18 +14,18 @@ return[
'auth/register@post'=>[
'mobile' => 'required|digits:11|unique:customers,mobile,NULL,NULL,deleted_at,NULL',
'fname'=>'required',
'lname'=>'required',
// 'lname'=>'required',
],
//--------------------user---------------------
'admin/user@post'=>[
'mobile'=>'required|digits:11|unique:users,mobile,NULL,NULL,deleted_at,NULL',
'fname'=>'required',
'lname'=>'required'
// 'fname'=>'required',
// 'lname'=>'required'
],
'admin/user/{id}@put'=>[
'mobile'=>'required',
'fname'=>'required',
'lname'=>'required'
// 'fname'=>'required',
// 'lname'=>'required'
],
'admin/messageNotification/create@post'=>[
'title' => 'required',
@ -42,8 +42,8 @@ return[
// ],
'admin/customer/{id}@put'=>[
'mobile'=>'required',
'fname'=>'required',
'lname'=>'required'
// 'fname'=>'required',
// 'lname'=>'required'
],
'customer/me/update@post'=>[
// 'mobile'=>'required|digits:11|unique:customers,mobile,me_id,id,deleted_at,NULL',
@ -52,8 +52,8 @@ return[
],
'customer/customer/{id}@put'=>[
'mobile'=>'required|digits:11|unique:customers,mobile,update_id,id,deleted_at,NULL',
'fname'=>'required',
'lname'=>'required'
// 'fname'=>'required',
// 'lname'=>'required'
],
'customer/messageNotification/create@post'=>[
'text' => 'required',

447
nohup.out Normal file
View File

@ -0,0 +1,447 @@
Could not open input file: /home/liman/pricing/artisan
Could not open input file: /home/liman/pricing/artisan
refPrice
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:23:22 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:23:25 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:23:29 GMT
true
refPrice
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:16 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:20 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:23 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:26 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:30 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:33 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:36 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:40 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:43 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:46 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:49 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:52 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:56 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:24:59 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:02 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:05 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:09 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:12 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:15 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:18 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:21 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:25 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:28 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:31 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:34 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:38 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:41 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:44 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:48 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:51 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:54 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:25:57 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:01 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:04 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:07 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:10 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:13 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:17 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:20 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:24 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:27 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:30 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:33 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:37 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:40 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:43 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:46 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:49 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:53 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:56 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:26:59 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 09:27:02 GMT
true
ErrorException
Undefined array key "HTTP_HOST"
at app/Http/Controllers/Controller.php:120
116▕ }
117▕ public static function trigerUrl()
118▕ {
119▕ $trigerUrl = env('wssLink','');
➜ 120▕ if ($_SERVER['HTTP_HOST'] == 'emexgold.com') {
121▕ $trigerUrl = 'https://emexgold.com';
122▕ }elseif ($_SERVER['HTTP_HOST'] == 'marandiigold.ir'){
123▕ $trigerUrl = 'https://ws.marandiigold.ir';
124▕ }elseif ($_SERVER['HTTP_HOST'] == 'sepidehgold.com'){
1 app/Http/Controllers/Controller.php:120
Illuminate\Foundation\Bootstrap\HandleExceptions::handleError()
2 app/Http/Controllers/Admin/PriceController.php:79
App\Http\Controllers\Controller::trigerUrl()
refPrice
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:16:33 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:16:36 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:16:39 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:16:42 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:16:46 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:16:49 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:16:52 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:16:56 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:16:59 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:17:02 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:17:06 GMT
true
refPrice
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:17:46 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:17:49 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:17:53 GMT
true
Executed b750 HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/json
Date: Sat, 30 Aug 2025 10:17:56 GMT
true

0
public/font/Yekan.ttf Normal file → Executable file
View File

0
public/font/Yekan_Bakh_Regular.ttf Normal file → Executable file
View File

0
public/font/iran-yekan-400.ttf Normal file → Executable file
View File

42660
refprice.log Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,5 @@
<?php
use Illuminate\Http\Request;
use App\Models\Message;
@ -30,6 +29,8 @@ use Illuminate\Support\Facades\Log;
use App\Http\Controllers\Controller;
use Carbon\Carbon;
//sudo nohup php /home/appgold/new/server/artisan praska refPrice
// sudo nohup php artisan praska refPrice > refprice.log 2>&1 &
Route::any('/refPricer',[PriceController::class,'b750']);
Route::get('/1212121hesabs', function () {