em đã cho đường dẫn nhận dữ liệu callback ở thesieure là http://hoanglong21603.great-site.net/api/callback
mà sao em chỉ muốn nó đi vào và thực hiện đoạn code này thử thôi mà nó vẫn không vào được.
class CallbackController extends Controller
{
public function callback()
{
// $status = $_GET('status');
// $rand = $_GET('request_id');
$data = Recharge_card::where('rand', 1)->first();
if ($data->status == 0) {
if ($data->status == 0) {
Recharge_card::where('rand', 1)->update(['status' => 2]);
} else {
Recharge_card::where('rand', 1)->update(['status' => 1]);
}
}
}
}
mà sao em chỉ muốn nó đi vào và thực hiện đoạn code này thử thôi mà nó vẫn không vào được.
class CallbackController extends Controller
{
public function callback()
{
// $status = $_GET('status');
// $rand = $_GET('request_id');
$data = Recharge_card::where('rand', 1)->first();
if ($data->status == 0) {
if ($data->status == 0) {
Recharge_card::where('rand', 1)->update(['status' => 2]);
} else {
Recharge_card::where('rand', 1)->update(['status' => 1]);
}
}
}
}